Class PrepareResponse
java.lang.Object
org.infinispan.remoting.responses.ValidResponse
org.infinispan.remoting.responses.PrepareResponse
- All Implemented Interfaces:
Response
A
ValidResponse
used by Optimistic Transactions.
It contains the new IncrementableEntryVersion
for each key updated.
To be extended in the future.
- Since:
- 11.0
- Author:
- Pedro Ruivo
-
Field Summary
Modifier and TypeFieldDescriptionstatic final org.infinispan.remoting.responses.PrepareResponse.Externalizer
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic PrepareResponse
getIracMetadata
(int segment) boolean
void
merge
(PrepareResponse remote) mergeEntryVersions
(Map<Object, IncrementableEntryVersion> entryVersions) static PrepareResponse
readFrom
(ObjectInput input) void
toString()
static void
writeTo
(PrepareResponse response, ObjectOutput output) Methods inherited from class org.infinispan.remoting.responses.ValidResponse
isValid
-
Field Details
-
EXTERNALIZER
public static final org.infinispan.remoting.responses.PrepareResponse.Externalizer EXTERNALIZER
-
-
Constructor Details
-
PrepareResponse
public PrepareResponse()
-
-
Method Details
-
writeTo
- Throws:
IOException
-
readFrom
public static PrepareResponse readFrom(ObjectInput input) throws IOException, ClassNotFoundException - Throws:
IOException
ClassNotFoundException
-
asPrepareResponse
-
isSuccessful
public boolean isSuccessful() -
getResponseValue
- Specified by:
getResponseValue
in classValidResponse
-
toString
- Overrides:
toString
in classValidResponse
-
getIracMetadata
-
setNewIracMetadata
-
merge
-
mergeEntryVersions
public Map<Object,IncrementableEntryVersion> mergeEntryVersions(Map<Object, IncrementableEntryVersion> entryVersions)
-