Class PrepareResponse
- java.lang.Object
-
- org.infinispan.remoting.responses.ValidResponse
-
- org.infinispan.remoting.responses.PrepareResponse
-
- All Implemented Interfaces:
Response
public class PrepareResponse extends ValidResponse
AValidResponseused by Optimistic Transactions.It contains the new
IncrementableEntryVersionfor each key updated.To be extended in the future.
- Since:
- 11.0
- Author:
- Pedro Ruivo
-
-
Field Summary
Fields Modifier and Type Field Description static org.infinispan.remoting.responses.PrepareResponse.ExternalizerEXTERNALIZER
-
Constructor Summary
Constructors Constructor Description PrepareResponse()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static PrepareResponseasPrepareResponse(Object rv)IracMetadatagetIracMetadata(int segment)ObjectgetResponseValue()booleanisSuccessful()voidmerge(PrepareResponse remote)Map<Object,IncrementableEntryVersion>mergeEntryVersions(Map<Object,IncrementableEntryVersion> entryVersions)static PrepareResponsereadFrom(ObjectInput input)voidsetNewIracMetadata(Map<Integer,IracMetadata> map)StringtoString()static voidwriteTo(PrepareResponse response, ObjectOutput output)-
Methods inherited from class org.infinispan.remoting.responses.ValidResponse
isValid
-
-
-
-
Method Detail
-
writeTo
public static void writeTo(PrepareResponse response, ObjectOutput output) throws IOException
- Throws:
IOException
-
readFrom
public static PrepareResponse readFrom(ObjectInput input) throws IOException, ClassNotFoundException
- Throws:
IOExceptionClassNotFoundException
-
asPrepareResponse
public static PrepareResponse asPrepareResponse(Object rv)
-
isSuccessful
public boolean isSuccessful()
-
getResponseValue
public Object getResponseValue()
- Specified by:
getResponseValuein classValidResponse
-
toString
public String toString()
- Overrides:
toStringin classValidResponse
-
getIracMetadata
public IracMetadata getIracMetadata(int segment)
-
setNewIracMetadata
public void setNewIracMetadata(Map<Integer,IracMetadata> map)
-
merge
public void merge(PrepareResponse remote)
-
mergeEntryVersions
public Map<Object,IncrementableEntryVersion> mergeEntryVersions(Map<Object,IncrementableEntryVersion> entryVersions)
-
-