Module io.github.bucket4j.core
Class AbstractBinaryTransaction
- java.lang.Object
-
- io.github.bucket4j.distributed.remote.AbstractBinaryTransaction
-
- All Implemented Interfaces:
MutableBucketEntry
public abstract class AbstractBinaryTransaction extends Object implements MutableBucketEntry
-
-
Constructor Summary
Constructors Modifier Constructor Description protectedAbstractBinaryTransaction(byte[] requestBytes)
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description byte[]execute()RemoteBucketStateget()protected abstract byte[]getRawState()voidset(RemoteBucketState state)protected abstract voidsetRawState(byte[] stateBytes)-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface io.github.bucket4j.distributed.remote.MutableBucketEntry
exists
-
-
-
-
Method Detail
-
execute
public byte[] execute()
-
set
public void set(RemoteBucketState state)
- Specified by:
setin interfaceMutableBucketEntry
-
get
public RemoteBucketState get()
- Specified by:
getin interfaceMutableBucketEntry
-
getRawState
protected abstract byte[] getRawState()
-
setRawState
protected abstract void setRawState(byte[] stateBytes)
-
-