public class ReadByIdsContext extends Object implements Serializable
| Constructor and Description | 
|---|
ReadByIdsContext(ITemplatePacket template,
                boolean accumulate)  | 
| Modifier and Type | Method and Description | 
|---|---|
boolean | 
accumulate()  | 
void | 
addFailure(Object id,
          Exception e)  | 
void | 
applyResult(AnswerPacket answerPacket,
           int resultIndex)
Apply the result - store the result (readByIds) or count the cleared objects (clearByIds) 
 | 
Map<Object,Exception> | 
getFailures()  | 
IEntryPacket[] | 
getResults()  | 
int | 
getSuccessCount()  | 
ITemplatePacket | 
getTemplate()  | 
void | 
initResultsEntryPackets()
if the operation not requires to accumulate set null, otherwise initialize the results for
 the readByIds operation 
 | 
public ReadByIdsContext(ITemplatePacket template, boolean accumulate)
public boolean accumulate()
public void initResultsEntryPackets()
public void applyResult(AnswerPacket answerPacket, int resultIndex)
answerPacket - the answer which were returned from the readById requestresultIndex - the index of the resultpublic int getSuccessCount()
public IEntryPacket[] getResults()
public ITemplatePacket getTemplate()
Copyright © GigaSpaces.