Class SpaceDataEventManager
java.lang.Object
com.gigaspaces.internal.server.space.events.SpaceDataEventManager
- All Implemented Interfaces:
ISpaceModeListener,Remote,EventListener
Control NotifyStatus status. This controller calls a given NotifyStatus for each notification
trigger/return.
- Since:
- 6.0
- Version:
- 1.0
- Author:
- Guy korland
-
Constructor Summary
ConstructorsConstructorDescriptionSpaceDataEventManager(IDirectSpaceProxy spaceProxy, FilterManager filterManager, SpaceImpl spaceImpl, SpaceConfigReader configReader) -
Method Summary
Modifier and TypeMethodDescriptionvoidafterSpaceModeChange(SpaceMode newMode) Called right after the space mode changes.voidbeforeSpaceModeChange(SpaceMode newMode) Called right before the space mode changes.
Implementors usually use it to allow specific service initializations.voidclose()voidvoidfinishTemplatesSearch(NotifyContext notifyContext) Called when the matching search is overlongintvoidinit(boolean isReplicated, IReplicationNode replicationNode) voidnotifyReturned(NotifyContext notifyContext, ITemplateHolder template) Called when a notification returnedvoidnotifyTemplate(NotifyTemplateHolder template, IEntryHolder entry, IEntryHolder oldEntry, NotifyContext notifyContext, Context ctx) Notifies a notification template with the specified remote event Notification is done asynchronously, by sending a bus packet to the Notifier.voidsetLeaseManager(LeaseManager leaseManager)
-
Constructor Details
-
SpaceDataEventManager
public SpaceDataEventManager(IDirectSpaceProxy spaceProxy, FilterManager filterManager, SpaceImpl spaceImpl, SpaceConfigReader configReader)
-
-
Method Details
-
init
-
setLeaseManager
-
close
public void close() -
notifyReturned
Called when a notification returned- Parameters:
notifyContext- current notify status checkedtemplate- the current template to filter
-
finishTemplatesSearch
Called when the matching search is over- Parameters:
notifyContext- current notify status checkedtemplate- the current template to filter
-
afterSpaceModeChange
Description copied from interface:ISpaceModeListenerCalled right after the space mode changes.
Implementors usually use it to invoke any needed services.- Specified by:
afterSpaceModeChangein interfaceISpaceModeListener- Parameters:
newMode- the new mode change after it was published.- Throws:
RemoteException- if an exception occurred during execution of a remote call.
-
beforeSpaceModeChange
Description copied from interface:ISpaceModeListenerCalled right before the space mode changes.
Implementors usually use it to allow specific service initializations.- Specified by:
beforeSpaceModeChangein interfaceISpaceModeListener- Parameters:
newMode- the new mode change before it's published.- Throws:
RemoteException- if an exception occurred during execution of a remote call.
-
generateEventId
public long generateEventId() -
getQueueSize
public int getQueueSize() -
executePacket
public void executePacket(RemoteEventBusPacket re, NotifyTemplateHolder th) throws RemoteException, UnknownEventException - Throws:
RemoteExceptionUnknownEventException
-
notifyTemplate
public void notifyTemplate(NotifyTemplateHolder template, IEntryHolder entry, IEntryHolder oldEntry, NotifyContext notifyContext, Context ctx) Notifies a notification template with the specified remote event Notification is done asynchronously, by sending a bus packet to the Notifier. Assumes template is locked.
-