Module io.github.bucket4j.core
Class BucketEntryWrapper
- java.lang.Object
-
- io.github.bucket4j.distributed.remote.commands.BucketEntryWrapper
-
- All Implemented Interfaces:
MutableBucketEntry
public class BucketEntryWrapper extends Object implements MutableBucketEntry
-
-
Constructor Summary
Constructors Constructor Description BucketEntryWrapper(RemoteBucketState state)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanexists()RemoteBucketStateget()booleanisStateModified()voidset(RemoteBucketState state)
-
-
-
Constructor Detail
-
BucketEntryWrapper
public BucketEntryWrapper(RemoteBucketState state)
-
-
Method Detail
-
exists
public boolean exists()
- Specified by:
existsin interfaceMutableBucketEntry
-
isStateModified
public boolean isStateModified()
-
set
public void set(RemoteBucketState state)
- Specified by:
setin interfaceMutableBucketEntry
-
get
public RemoteBucketState get()
- Specified by:
getin interfaceMutableBucketEntry
-
-