Class NetworkProtocol.PutOperation
- java.lang.Object
-
- io.github.dhruv1110.jcachex.distributed.NetworkProtocol.CacheOperation
-
- io.github.dhruv1110.jcachex.distributed.NetworkProtocol.PutOperation
-
- All Implemented Interfaces:
Serializable
- Enclosing interface:
- NetworkProtocol
public static class NetworkProtocol.PutOperation extends NetworkProtocol.CacheOperation
Put operation for distributed cache.- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description PutOperation(String operationId, String sourceNodeId, Object key, Object value, DistributedCache.ConsistencyLevel consistencyLevel)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description DistributedCache.ConsistencyLevel
getConsistencyLevel()
Object
getKey()
NetworkProtocol.OperationType
getType()
Object
getValue()
-
Methods inherited from class io.github.dhruv1110.jcachex.distributed.NetworkProtocol.CacheOperation
getOperationId, getSourceNodeId, getTimestamp
-
-
-
-
Constructor Detail
-
PutOperation
public PutOperation(String operationId, String sourceNodeId, Object key, Object value, DistributedCache.ConsistencyLevel consistencyLevel)
-
-
Method Detail
-
getKey
public Object getKey()
-
getValue
public Object getValue()
-
getConsistencyLevel
public DistributedCache.ConsistencyLevel getConsistencyLevel()
-
getType
public NetworkProtocol.OperationType getType()
- Specified by:
getType
in classNetworkProtocol.CacheOperation
-
-