Package org.infinispan.commands
Class CommandInvocationId
java.lang.Object
org.infinispan.commands.CommandInvocationId
Represents an unique identified for non-transaction write commands.
It is used to lock the key for a specific command.
This class is final to prevent issues as it is usually not marshalled
as polymorphic object but directly using writeTo(ObjectOutput, CommandInvocationId)
and readFrom(ObjectInput).
- Since:
- 8.0
- Author:
- Pedro Ruivo
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final CommandInvocationIdstatic final AbstractExternalizer<CommandInvocationId> -
Method Summary
Modifier and TypeMethodDescriptionbooleanstatic CommandInvocationIdgenerateId(Address address) static CommandInvocationIdgenerateIdFrom(CommandInvocationId commandInvocationId) longgetId()inthashCode()static CommandInvocationIdreadFrom(ObjectInput input) static StringtoString()static voidwriteTo(ObjectOutput output, CommandInvocationId commandInvocationId)
-
Field Details
-
DUMMY_INVOCATION_ID
-
EXTERNALIZER
-
-
Method Details
-
generateId
-
generateIdFrom
-
writeTo
public static void writeTo(ObjectOutput output, CommandInvocationId commandInvocationId) throws IOException - Throws:
IOException
-
readFrom
public static CommandInvocationId readFrom(ObjectInput input) throws ClassNotFoundException, IOException - Throws:
ClassNotFoundExceptionIOException
-
getId
public long getId() -
equals
-
getAddress
-
hashCode
public int hashCode() -
toString
-
show
-