Class RateLimiter
public class RateLimiter : RocksObject, IDynamicMetaObjectProvider, IJVMBridgeCore, IEquatable<IJVMBridgeBase>, IDisposable, IJVMBridgeBaseStatic, IJVMBridgeBase, IJVMBridgeDefinition, IAutoCloseable
- Inheritance
-
RateLimiter
- Implements
- Inherited Members
-
JVMBridgeBase<AutoCloseable>.SExecuteWithSignature(Type, IJavaType, string, string, params object[])JVMBridgeBase<AutoCloseable>.SExecute<TReturn, TConverter>(Type, IJavaType, string, params object[])JVMBridgeBase<AutoCloseable>.SExecuteWithSignatureArray<TArrayType>(string, string, params object[])
Constructors
RateLimiter()
Default constructor: even if the corresponding Java class does not have one, it is mandatory for JCOBridge
public RateLimiter()
RateLimiter(IJVMBridgeBaseInitializer)
Internal constructor: used internally from JCOBridge
[Obsolete("This public initializer is needed for JCOBridge internal use, other uses can produce unidentible behaviors.")]
public RateLimiter(IJVMBridgeBaseInitializer initializer)
Parameters
initializerIJVMBridgeBaseInitializer
RateLimiter(long)
public RateLimiter(long arg0)
Parameters
RateLimiter(long, long)
public RateLimiter(long arg0, long arg1)
Parameters
RateLimiter(long, long, int)
public RateLimiter(long arg0, long arg1, int arg2)
Parameters
RateLimiter(long, long, int, RateLimiterMode)
public RateLimiter(long arg0, long arg1, int arg2, RateLimiterMode arg3)
Parameters
arg0longarg1longarg2intarg3RateLimiterMode
RateLimiter(long, long, int, RateLimiterMode, bool)
public RateLimiter(long arg0, long arg1, int arg2, RateLimiterMode arg3, bool arg4)
Parameters
arg0longarg1longarg2intarg3RateLimiterModearg4bool
RateLimiter(params object[])
Generic constructor: it is useful for JCOBridge when there is a derived class which needs to pass arguments to the highest JVMBridgeBase class
public RateLimiter(params object[] args)
Parameters
argsobject[]
Properties
BridgeClassName
Java class name to be instantiated
public override string BridgeClassName { get; }
Property Value
BytesPerSecond
https://www.javadoc.io/doc/org.rocksdb/rocksdbjni/10.1.3/org/rocksdb/RateLimiter.html#getBytesPerSecond() https://www.javadoc.io/doc/org.rocksdb/rocksdbjni/10.1.3/org/rocksdb/RateLimiter.html#setBytesPerSecond(long)
public long BytesPerSecond { get; set; }
Property Value
DEFAULT_AUTOTUNE
public static bool DEFAULT_AUTOTUNE { get; }
Property Value
DEFAULT_FAIRNESS
public static int DEFAULT_FAIRNESS { get; }
Property Value
DEFAULT_MODE
public static RateLimiterMode DEFAULT_MODE { get; }
Property Value
DEFAULT_REFILL_PERIOD_MICROS
public static long DEFAULT_REFILL_PERIOD_MICROS { get; }
Property Value
IsBridgeAbstract
true if the BridgeClassName is an abstract class, i.e. cannot be created an instance
public override bool IsBridgeAbstract { get; }
Property Value
IsBridgeCloseable
true if the BridgeClassName implements Closeable
public override bool IsBridgeCloseable { get; }
Property Value
IsBridgeInterface
true if the BridgeClassName is an interface, i.e. does not have any public constructor
public override bool IsBridgeInterface { get; }
Property Value
IsBridgeStatic
true if the BridgeClassName is a static class, i.e. does not have any public constructor
public override bool IsBridgeStatic { get; }
Property Value
SingleBurstBytes
public long SingleBurstBytes { get; }
Property Value
TotalBytesThrough
public long TotalBytesThrough { get; }
Property Value
TotalRequests
public long TotalRequests { get; }
Property Value
Methods
Request(long)
public void Request(long arg0)