- java.lang.Object
-
- io.github.bucket4j.distributed.remote.Request<T>
-
- All Implemented Interfaces:
ComparableByContent<Request<T>>
public class Request<T> extends Object implements ComparableByContent<Request<T>>
-
-
Field Summary
Fields Modifier and Type Field Description static SerializationHandle<Request>SERIALIZATION_HANDLE
-
Constructor Summary
Constructors Constructor Description Request(RemoteCommand<T> command, Version backwardCompatibilityVersion, Long clientSideTime)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanequalsByContent(Request<T> other)VersiongetBackwardCompatibilityVersion()LonggetClientSideTime()RemoteCommand<T>getCommand()
-
-
-
Field Detail
-
SERIALIZATION_HANDLE
public static SerializationHandle<Request> SERIALIZATION_HANDLE
-
-
Constructor Detail
-
Request
public Request(RemoteCommand<T> command, Version backwardCompatibilityVersion, Long clientSideTime)
-
-
Method Detail
-
getCommand
public RemoteCommand<T> getCommand()
-
getBackwardCompatibilityVersion
public Version getBackwardCompatibilityVersion()
-
getClientSideTime
public Long getClientSideTime()
-
equalsByContent
public boolean equalsByContent(Request<T> other)
- Specified by:
equalsByContentin interfaceComparableByContent<T>
-
-