GigaSpaces - Open Spaces

org.openspaces.events.notify
Annotation Type Notify


@Target(value=TYPE)
@Retention(value=RUNTIME)
@Component
public @interface Notify

Marks an event listener as polled event listener. It will be wrapped automtically with SimpleNotifyEventListenerContainer.

Template can be provided using EventTemplate marked on a general method that returns the template.

The event listener method should be marked with SpaceDataEvent.

Author:
kimchy
See Also:
TransactionalEvent, NotifyBatch, NotifyLease, NotifyType

Optional Element Summary
 NotifyComType commType
           
 boolean fifo
           
 String gigaSpace
          The name of the bean that that is the GigaSpace this container will used.
 boolean ignoreEventOnNullTake
           
 Class<com.j_spaces.core.client.INotifyDelegatorFilter> notifyFilter
           
 boolean performSnapshot
           
 boolean performTakeOnNotify
           
 

gigaSpace

public abstract String gigaSpace
The name of the bean that that is the GigaSpace this container will used.

Note, this is optional. If there is a field of type GigaSpace it will be used. If there is none, and there is only one GigaSpace defined in the application context, it will be used.

Default:
""

performSnapshot

public abstract boolean performSnapshot
See Also:
AbstractTemplateEventListenerContainer.setPerformSnapshot(boolean)
Default:
true

performTakeOnNotify

public abstract boolean performTakeOnNotify
See Also:
SimpleNotifyEventListenerContainer.setPerformTakeOnNotify(boolean)
Default:
false

ignoreEventOnNullTake

public abstract boolean ignoreEventOnNullTake
See Also:
SimpleNotifyEventListenerContainer.setIgnoreEventOnNullTake(boolean)
Default:
false

commType

public abstract NotifyComType commType
See Also:
AbstractNotifyEventListenerContainer.setComType(int)
Default:
UNICAST

fifo

public abstract boolean fifo
See Also:
AbstractNotifyEventListenerContainer.setFifo(boolean)
Default:
false

notifyFilter

public abstract Class<com.j_spaces.core.client.INotifyDelegatorFilter> notifyFilter
See Also:
AbstractNotifyEventListenerContainer.setNotifyFilter(com.j_spaces.core.client.INotifyDelegatorFilter)
Default:
com.j_spaces.core.client.INotifyDelegatorFilter.class

GigaSpaces - Open Spaces

Copyright © GigaSpaces.