Package org.infinispan.commands
Class CommandInvocationId
- java.lang.Object
-
- org.infinispan.commands.CommandInvocationId
-
public final class CommandInvocationId extends Object
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)
andreadFrom(ObjectInput)
.- Since:
- 8.0
- Author:
- Pedro Ruivo
-
-
Field Summary
Fields Modifier and Type Field Description static CommandInvocationId
DUMMY_INVOCATION_ID
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
equals(Object o)
static CommandInvocationId
generateId(Address address)
static CommandInvocationId
generateIdFrom(CommandInvocationId commandInvocationId)
Address
getAddress()
long
getId()
int
hashCode()
static CommandInvocationId
readFrom(ObjectInput input)
static String
show(CommandInvocationId id)
String
toString()
static void
writeTo(ObjectOutput output, CommandInvocationId commandInvocationId)
-
-
-
Field Detail
-
DUMMY_INVOCATION_ID
public static final CommandInvocationId DUMMY_INVOCATION_ID
-
-
Method Detail
-
generateId
public static CommandInvocationId generateId(Address address)
-
generateIdFrom
public static CommandInvocationId generateIdFrom(CommandInvocationId commandInvocationId)
-
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()
-
getAddress
public Address getAddress()
-
show
public static String show(CommandInvocationId id)
-
-