Table of Contents

Class RateLimiter

Namespace
Org.Rocksdb
Assembly
MASES.KNet.dll
public class RateLimiter : RocksObject, IDynamicMetaObjectProvider, IJVMBridgeCore, IEquatable<IJVMBridgeBase>, IDisposable, IJVMBridgeBaseStatic, IJVMBridgeBase, IJVMBridgeDefinition, IAutoCloseable
Inheritance
RateLimiter
Implements
Inherited Members

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

initializer IJVMBridgeBaseInitializer

RateLimiter(long)

public RateLimiter(long arg0)

Parameters

arg0 long

long

RateLimiter(long, long)

public RateLimiter(long arg0, long arg1)

Parameters

arg0 long

long

arg1 long

long

RateLimiter(long, long, int)

public RateLimiter(long arg0, long arg1, int arg2)

Parameters

arg0 long

long

arg1 long

long

arg2 int

int

RateLimiter(long, long, int, RateLimiterMode)

public RateLimiter(long arg0, long arg1, int arg2, RateLimiterMode arg3)

Parameters

arg0 long

long

arg1 long

long

arg2 int

int

arg3 RateLimiterMode

RateLimiterMode

RateLimiter(long, long, int, RateLimiterMode, bool)

public RateLimiter(long arg0, long arg1, int arg2, RateLimiterMode arg3, bool arg4)

Parameters

arg0 long

long

arg1 long

long

arg2 int

int

arg3 RateLimiterMode

RateLimiterMode

arg4 bool

bool

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

args object[]

Properties

BridgeClassName

Java class name to be instantiated

public override string BridgeClassName { get; }

Property Value

string

BytesPerSecond

public long BytesPerSecond { get; set; }

Property Value

long

DEFAULT_AUTOTUNE

public static bool DEFAULT_AUTOTUNE { get; }

Property Value

bool

DEFAULT_FAIRNESS

public static int DEFAULT_FAIRNESS { get; }

Property Value

int

DEFAULT_MODE

public static RateLimiterMode DEFAULT_MODE { get; }

Property Value

RateLimiterMode

DEFAULT_REFILL_PERIOD_MICROS

public static long DEFAULT_REFILL_PERIOD_MICROS { get; }

Property Value

long

IsBridgeAbstract

true if the BridgeClassName is an abstract class, i.e. cannot be created an instance

public override bool IsBridgeAbstract { get; }

Property Value

bool

IsBridgeCloseable

true if the BridgeClassName implements Closeable

public override bool IsBridgeCloseable { get; }

Property Value

bool

IsBridgeInterface

true if the BridgeClassName is an interface, i.e. does not have any public constructor

public override bool IsBridgeInterface { get; }

Property Value

bool

IsBridgeStatic

true if the BridgeClassName is a static class, i.e. does not have any public constructor

public override bool IsBridgeStatic { get; }

Property Value

bool

SingleBurstBytes

public long SingleBurstBytes { get; }

Property Value

long

TotalBytesThrough

public long TotalBytesThrough { get; }

Property Value

long

TotalRequests

public long TotalRequests { get; }

Property Value

long

Methods

Request(long)

public void Request(long arg0)

Parameters

arg0 long

long