Package com.j_spaces.core
Class AnswerHolder
java.lang.Object
com.j_spaces.core.AnswerHolder
- Direct Known Subclasses:
ExtendedAnswerHolder,ServerIteratorAnswerHolder
Instances of this class are mediators between the receiver to the rest of the engine. The
receiver creates an AnswerHolder instance and a Bus Packet with a reference to this instance. The
engine processes the Bus packet. When done, the engine notifies the receiver thread by calling
the
notify() method on the AnswerHolder instance.-
Field Summary
FieldsModifier and TypeFieldDescriptionint -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionintintvoidsetEntryPackets(IEntryPacket[] entryPackets) voidsetEventRegistration(GSEventRegistration m_EventRegistration) voidvoidsetNumOfEntriesMatched(int numOfEntriesMatched) voidsetServerTypeDesc(IServerTypeDesc serverTypeDesc) voidsetSyncRelplicationLevel(int syncRelplicationLevel) voidsetUpdateMultipleResult(WriteEntriesResult updateMultipleResult) void
-
Field Details
-
m_AnswerPacket
-
m_Exception
-
_numOfEntriesMatched
public int _numOfEntriesMatched
-
-
Constructor Details
-
AnswerHolder
public AnswerHolder()
-
-
Method Details
-
getSyncRelplicationLevel
public int getSyncRelplicationLevel() -
setSyncRelplicationLevel
public void setSyncRelplicationLevel(int syncRelplicationLevel) -
setEventRegistration
-
getEventRegistration
-
getResult
public AnswerPacket getResult() throws EntryVersionConflictException, EntryNotInSpaceException, TransactionException -
getAnswerPacket
-
getException
-
getEntryPackets
-
setEntryPackets
-
getUpdateMultipleResult
-
setUpdateMultipleResult
-
getNumOfEntriesMatched
public int getNumOfEntriesMatched() -
setNumOfEntriesMatched
public void setNumOfEntriesMatched(int numOfEntriesMatched) -
throwExceptionIfExists
public void throwExceptionIfExists() throws TransactionException, EntryVersionConflictException, EntryNotInSpaceException -
setExplainPlan
-
getExplainPlan
-
getServerTypeDesc
-
setServerTypeDesc
-