Class BatchQueryOperationContext
java.lang.Object
com.gigaspaces.internal.server.space.BatchQueryOperationContext
- Direct Known Subclasses:
AggregateOperationContext,ChangeMultipleContext,ClearContext,ReadMultipleContext,TakeMultipleContext
Context for batch query operations. Accumulates batch results and exceptions.
- Since:
- 7.1
- Author:
- anna
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionBatchQueryOperationContext(ITemplatePacket template, int maxEntries, int minEntries) -
Method Summary
Modifier and TypeMethodDescriptionvoidaddResult(IEntryPacket result) voidprotected voidprotected List<IEntryPacket>createResultList(ITemplatePacket template, int maxEntries) Create a list that will accumulate the batch operation results.intintintbooleanbooleanisClear()booleanisInProcessedUids(String uid) protected booleanbooleanbooleanabstract voidHandles an exception that was thrown while executing the batch operationbooleanbooleanvoidsetExceptions(List<Throwable> exceptions) protected voidsetResults(List<IEntryPacket> _results)
-
Field Details
-
_processedUids
-
-
Constructor Details
-
BatchQueryOperationContext
-
-
Method Details
-
createResultList
Create a list that will accumulate the batch operation results. -
addResult
-
keepResultsInBatchContext
protected boolean keepResultsInBatchContext() -
setResults
-
getResults
-
getNumResults
public int getNumResults() -
getExceptions
-
setExceptions
-
reachedMinEntries
public boolean reachedMinEntries() -
reachedMaxEntries
public boolean reachedMaxEntries() -
onException
Handles an exception that was thrown while executing the batch operation -
needToProcessExecption
public boolean needToProcessExecption() -
needProcessEntriesForReturnedResult
public boolean needProcessEntriesForReturnedResult() -
processReturnedValueForBatchOperation
-
getMaxEntries
public int getMaxEntries() -
getMinEntries
public int getMinEntries() -
hasAnyEntries
public boolean hasAnyEntries() -
createProcessedUidsIfNeeded
protected void createProcessedUidsIfNeeded() -
isInProcessedUids
-
addToProcessedUidsIfNeeded
-
isClear
public boolean isClear()
-