Module io.github.bucket4j.core
Class GenericEntry
- java.lang.Object
-
- io.github.bucket4j.distributed.proxy.generic.GenericEntry
-
- All Implemented Interfaces:
MutableBucketEntry
public class GenericEntry extends Object implements MutableBucketEntry
-
-
Constructor Summary
Constructors Constructor Description GenericEntry(byte[] originalStateBytes, Version backwardCompatibilityVersion)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanexists()RemoteBucketStateget()RemoteBucketStategetModifiedState()byte[]getModifiedStateBytes()booleanisModified()voidset(RemoteBucketState state)
-
-
-
Constructor Detail
-
GenericEntry
public GenericEntry(byte[] originalStateBytes, Version backwardCompatibilityVersion)
-
-
Method Detail
-
exists
public boolean exists()
- Specified by:
existsin interfaceMutableBucketEntry
-
set
public void set(RemoteBucketState state)
- Specified by:
setin interfaceMutableBucketEntry
-
get
public RemoteBucketState get()
- Specified by:
getin interfaceMutableBucketEntry
-
getModifiedState
public RemoteBucketState getModifiedState()
-
getModifiedStateBytes
public byte[] getModifiedStateBytes()
-
isModified
public boolean isModified()
-
-