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
Modifier and TypeFieldDescriptionstatic final CommandInvocationId
static final AbstractExternalizer
<CommandInvocationId> -
Method Summary
Modifier and TypeMethodDescriptionboolean
static CommandInvocationId
generateId
(Address address) static CommandInvocationId
generateIdFrom
(CommandInvocationId commandInvocationId) long
getId()
int
hashCode()
static CommandInvocationId
readFrom
(ObjectInput input) static String
toString()
static void
writeTo
(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:
ClassNotFoundException
IOException
-
getId
public long getId() -
equals
-
getAddress
-
hashCode
public int hashCode() -
toString
-
show
-