Module io.github.bucket4j.core
Class AbstractBinaryTransaction
- java.lang.Object
-
- io.github.bucket4j.distributed.remote.AbstractBinaryTransaction
-
public abstract class AbstractBinaryTransaction extends Object
-
-
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()abstract booleanexists()protected longgetCurrentTimeNanos()protected ExpirationAfterWriteStrategygetExpirationStrategy()protected abstract byte[]getRawState()protected Request<?>getRequest()protected abstract voidsetRawState(byte[] newStateBytes, RemoteBucketState newState)
-
-
-
Method Detail
-
execute
public byte[] execute()
-
getRawState
protected abstract byte[] getRawState()
-
setRawState
protected abstract void setRawState(byte[] newStateBytes, RemoteBucketState newState)
-
exists
public abstract boolean exists()
-
getRequest
protected Request<?> getRequest()
-
getExpirationStrategy
protected ExpirationAfterWriteStrategy getExpirationStrategy()
-
getCurrentTimeNanos
protected long getCurrentTimeNanos()
-
-