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
- See Also:
-
ignoreEventOnNullTake
- See Also:
-
fifo
- See Also:
-
passArrayAsIs
- See Also:
-
batchSize
- See Also:
-
batchTime
- See Also:
-
batchPendingThreshold
- See Also:
-
autoRenew
- See Also:
-
renewExpiration
Deprecated.- See Also:
-
renewDuration
Deprecated.- See Also:
-
renewRTT
-
leaseListener
- See Also:
-
template
- See Also:
-
performSnapshot
- See Also:
-
listenerLease
Deprecated.Since 9.7 - event listener with custom lease is deprecated.- See Also:
-
notifyFilter
- See Also:
-
notifyWrite
- See Also:
-
notifyUpdate
- See Also:
-
notifyTake
- See Also:
-
notifyAll
- See Also:
-
notifyUnmatched
- See Also:
-
notifyMatchedUpdate
- See Also:
-
notifyRematchedUpdate
- See Also:
-
notifyLeaseExpire
- See Also:
-
guaranteed
Deprecated.Since 9.0 usedurable(boolean)instead.- See Also:
-
durable
- See Also:
-
tag
- Parameters:
tag- A name/id/tag to identify this durable notification listener endpoint.- Since:
- 14.5
- See Also:
-
triggerNotifyTemplate
- See Also:
-
replicateNotifyTemplate
- See Also:
-
transactionManager
public SimpleNotifyContainerConfigurer transactionManager(org.springframework.transaction.PlatformTransactionManager transactionManager) - See Also:
-
transactionName
- See Also:
-
transactionTimeout
- See Also:
-
transactionIsolationLevel
- See Also:
-
exceptionHandler
- See Also:
-
eventListener
- See Also:
-
eventListenerAnnotation
Sets an event listener that uses annotations- See Also:
-
eventListenerMethod
Sets an event listener that uses method name as an adapter- See Also:
-
activeWhenPrimary
- See Also:
-
autoStart
- See Also:
-
create
Creates a newSimpleNotifyEventListenerContainerinstance. -
notifyContainer
Creates a newSimpleNotifyEventListenerContainerinstance.- See Also:
-
durable(boolean)instead.