Module io.github.bucket4j.core
Class MutableBucketEntry
- java.lang.Object
-
- io.github.bucket4j.distributed.remote.MutableBucketEntry
-
public class MutableBucketEntry extends Object
-
-
Constructor Summary
Constructors Constructor Description MutableBucketEntry(byte[] originalStateBytes)MutableBucketEntry(RemoteBucketState state)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanexists()RemoteBucketStateget()byte[]getStateBytes(Version backwardCompatibilityVersion)booleanisStateModified()voidset(RemoteBucketState state)
-
-
-
Constructor Detail
-
MutableBucketEntry
public MutableBucketEntry(RemoteBucketState state)
-
MutableBucketEntry
public MutableBucketEntry(byte[] originalStateBytes)
-
-
Method Detail
-
exists
public boolean exists()
-
isStateModified
public boolean isStateModified()
-
set
public void set(RemoteBucketState state)
-
get
public RemoteBucketState get()
-
getStateBytes
public byte[] getStateBytes(Version backwardCompatibilityVersion)
-
-