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 CommandInvocationIdDUMMY_INVOCATION_ID
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanequals(Object o)static CommandInvocationIdgenerateId(Address address)static CommandInvocationIdgenerateIdFrom(CommandInvocationId commandInvocationId)AddressgetAddress()longgetId()inthashCode()static CommandInvocationIdreadFrom(ObjectInput input)static Stringshow(CommandInvocationId id)StringtoString()static voidwriteTo(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:
ClassNotFoundExceptionIOException
-
getId
public long getId()
-
getAddress
public Address getAddress()
-
show
public static String show(CommandInvocationId id)
-
-