Class NotifyContext
java.lang.Object
com.gigaspaces.internal.server.space.events.NotifyContext
Holds a counter that indicates how many notifications are still not returned from the client.
When the number is getting to 0, it means that all the possible notifications where triggered and
that all of them already returned.
- Since:
- 6.0
- Version:
- 1.0
- Author:
- Guy Korland
-
Constructor Summary
ConstructorsConstructorDescriptionNotifyContext(IEntryHolder notifyEntry, IEntryHolder referanceEntry, OperationID operationId, NotifyActionType notifyType) NotifyContext(IEntryHolder notifyEntry, OperationID operationId, NotifyActionType notifyType) -
Method Summary
Modifier and TypeMethodDescriptionbooleancountDec()booleancountInc(boolean needAfterAll) getEntry()booleanbooleanvoidsetFinishedTemplateSearch(boolean finishedTemplateSearch) voidsetGuaranteedNotifications(boolean guaranteedNotifications)
-
Constructor Details
-
NotifyContext
public NotifyContext(IEntryHolder notifyEntry, OperationID operationId, NotifyActionType notifyType) -
NotifyContext
public NotifyContext(IEntryHolder notifyEntry, IEntryHolder referanceEntry, OperationID operationId, NotifyActionType notifyType)
-
-
Method Details
-
getEntry
-
getReferenceEntry
-
getOperationId
-
getNotifyType
-
isGuaranteedNotifications
public boolean isGuaranteedNotifications() -
setGuaranteedNotifications
public void setGuaranteedNotifications(boolean guaranteedNotifications) -
isFinishedTemplateSearch
public boolean isFinishedTemplateSearch() -
setFinishedTemplateSearch
public void setFinishedTemplateSearch(boolean finishedTemplateSearch) -
countInc
public boolean countInc(boolean needAfterAll) - Returns:
- true if the first increase
-
countDec
public boolean countDec()- Returns:
- true if all the counter is 0 (no need to wait for more notifications to return)
-