Class ReadByIdsContext
java.lang.Object
com.gigaspaces.internal.server.space.ReadByIdsContext
- All Implemented Interfaces:
Serializable
Created by boris on 12/30/2014. Contains the context for each readByIds (also used in clearByIds
- AKA clear(IdsQuery query)). Since 10.1.0
- See Also:
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanvoidaddFailure(Object id, Exception e) voidapplyResult(AnswerPacket answerPacket, int resultIndex) Apply the result - store the result (readByIds) or count the cleared objects (clearByIds)intvoidif the operation not requires to accumulate set null, otherwise initialize the results for the readByIds operation
-
Constructor Details
-
ReadByIdsContext
-
-
Method Details
-
accumulate
public boolean accumulate()- Returns:
- true if the context should accumulate results, false otherwise
-
initResultsEntryPackets
public void initResultsEntryPackets()if the operation not requires to accumulate set null, otherwise initialize the results for the readByIds operation -
applyResult
Apply the result - store the result (readByIds) or count the cleared objects (clearByIds)- Parameters:
answerPacket- the answer which were returned from the readById requestresultIndex- the index of the result
-
getSuccessCount
public int getSuccessCount() -
getResults
-
getTemplate
-
getFailures
-
addFailure
-