Package org.openspaces.events.notify
Class SimpleNotifyContainerConfigurer
java.lang.Object
org.openspaces.events.notify.SimpleNotifyContainerConfigurer
A simplified programmatic configuration that for
SimpleNotifyEventListenerContainer.
Sample usage:
UrlSpaceConfigurer urlSpaceConfigurerPrimary = new UrlSpaceConfigurer("/./space");
GigaSpace gigaSpace = new GigaSpaceConfigurer(urlSpaceConfigurerPrimary.space()).gigaSpace();
SimpleNotifyEventListenerContainer notifyEventListenerContainer = new
SimpleNotifyContainerConfigurer(gigaSpace)
.template(new TestMessage())
.eventListenerAnnotation(new Object() {
@SpaceDataEvent public void gotMeselfAnEvent() {
// do something
}
}).notifyContainer();
...
notifyEventListenerContainer.destroy();
urlSpaceConfigurerPrimary.destroy();
- Author:
- kimchy
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionactiveWhenPrimary(boolean activeWhenPrimary) autoRenew(boolean autoRenew) autoStart(boolean autoStart) batchPendingThreshold(Integer batchPendingThreshold) create()Creates a newSimpleNotifyEventListenerContainerinstance.durable(boolean durable) eventListener(SpaceDataEventListener eventListener) eventListenerAnnotation(Object eventListener) Sets an event listener that uses annotationseventListenerMethod(Object eventListener, String methodName) Sets an event listener that uses method name as an adapterexceptionHandler(EventExceptionHandler exceptionHandler) fifo(boolean fifo) guaranteed(boolean guaranteed) Deprecated.ignoreEventOnNullTake(boolean ignoreEventOnNullTake) leaseListener(LeaseListener leaseListener) listenerLease(long listenerLease) Deprecated.Since 9.7 - event listener with custom lease is deprecated.notifyAll(boolean notifyAll) Creates a newSimpleNotifyEventListenerContainerinstance.notifyFilter(INotifyDelegatorFilter notifyFilter) notifyLeaseExpire(boolean notifyLeaseExpire) notifyMatchedUpdate(boolean notifyMatched) notifyRematchedUpdate(boolean notifyRematched) notifyTake(boolean notifyTake) notifyUnmatched(boolean notifyUnmatched) notifyUpdate(boolean notifyUpdate) notifyWrite(boolean notifyWrite) passArrayAsIs(boolean passArrayAsIs) performSnapshot(boolean performSnapshot) performTakeOnNotify(boolean performTakeOnNotify) renewDuration(long renewDuration) Deprecated.renewExpiration(long renewExpiration) Deprecated.renewRTT(long renewRTT) Deprecated.replicateNotifyTemplate(boolean replicateNotifyTemplate) transactionIsolationLevel(int transactionIsolationLevel) transactionManager(org.springframework.transaction.PlatformTransactionManager transactionManager) transactionName(String transactionName) transactionTimeout(int transactionTimeout) triggerNotifyTemplate(boolean triggerNotifyTemplate)
-
Constructor Details
-
SimpleNotifyContainerConfigurer
-
-
Method Details
-
name
-
performTakeOnNotify
-
ignoreEventOnNullTake
-
fifo
-
passArrayAsIs
-
batchSize
-
batchTime
-
batchPendingThreshold
-
autoRenew
-
renewExpiration
Deprecated. -
renewDuration
Deprecated. -
renewRTT
Deprecated. -
leaseListener
-
template
-
performSnapshot
-
listenerLease
Deprecated.Since 9.7 - event listener with custom lease is deprecated. -
notifyFilter
-
notifyWrite
-
notifyUpdate
-
notifyTake
-
notifyAll
-
notifyUnmatched
-
notifyMatchedUpdate
-
notifyRematchedUpdate
-
notifyLeaseExpire
-
guaranteed
Deprecated.Since 9.0 usedurable(boolean)instead. -
durable
-
tag
- Parameters:
tag- A name/id/tag to identify this durable notification listener endpoint.- Since:
- 14.5
- See Also:
-
triggerNotifyTemplate
-
replicateNotifyTemplate
-
transactionManager
public SimpleNotifyContainerConfigurer transactionManager(org.springframework.transaction.PlatformTransactionManager transactionManager) -
transactionName
-
transactionTimeout
-
transactionIsolationLevel
-
exceptionHandler
-
eventListener
-
eventListenerAnnotation
Sets an event listener that uses annotations -
eventListenerMethod
Sets an event listener that uses method name as an adapter -
activeWhenPrimary
-
autoStart
-
create
Creates a newSimpleNotifyEventListenerContainerinstance. -
notifyContainer
Creates a newSimpleNotifyEventListenerContainerinstance.- See Also:
-
durable(boolean)instead.