- java.lang.Object
-
- io.github.bucket4j.distributed.remote.RemoteStat
-
- All Implemented Interfaces:
ComparableByContent<RemoteStat>
public class RemoteStat extends Object implements ComparableByContent<RemoteStat>
-
-
Field Summary
Fields Modifier and Type Field Description static SerializationHandle<RemoteStat>SERIALIZATION_HANDLE
-
Constructor Summary
Constructors Constructor Description RemoteStat(long consumedTokens)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidaddConsumedTokens(long consumedTokens)RemoteStatcopy()booleanequalsByContent(RemoteStat other)longgetConsumedTokens()
-
-
-
Field Detail
-
SERIALIZATION_HANDLE
public static final SerializationHandle<RemoteStat> SERIALIZATION_HANDLE
-
-
Method Detail
-
getConsumedTokens
public long getConsumedTokens()
-
addConsumedTokens
public void addConsumedTokens(long consumedTokens)
-
copy
public RemoteStat copy()
-
equalsByContent
public boolean equalsByContent(RemoteStat other)
- Specified by:
equalsByContentin interfaceComparableByContent<RemoteStat>
-
-