public class SimpleNotifyContainerConfigurer extends Object
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();
Constructor and Description |
---|
SimpleNotifyContainerConfigurer(GigaSpace gigaSpace) |
public SimpleNotifyContainerConfigurer(GigaSpace gigaSpace)
public SimpleNotifyContainerConfigurer name(String name)
public SimpleNotifyContainerConfigurer performTakeOnNotify(boolean performTakeOnNotify)
public SimpleNotifyContainerConfigurer ignoreEventOnNullTake(boolean ignoreEventOnNullTake)
public SimpleNotifyContainerConfigurer fifo(boolean fifo)
public SimpleNotifyContainerConfigurer passArrayAsIs(boolean passArrayAsIs)
public SimpleNotifyContainerConfigurer batchSize(Integer batchSize)
public SimpleNotifyContainerConfigurer batchTime(Integer batchTime)
public SimpleNotifyContainerConfigurer batchPendingThreshold(Integer batchPendingThreshold)
public SimpleNotifyContainerConfigurer autoRenew(boolean autoRenew)
@Deprecated public SimpleNotifyContainerConfigurer renewExpiration(long renewExpiration)
@Deprecated public SimpleNotifyContainerConfigurer renewDuration(long renewDuration)
@Deprecated public SimpleNotifyContainerConfigurer renewRTT(long renewRTT)
public SimpleNotifyContainerConfigurer leaseListener(LeaseListener leaseListener)
public SimpleNotifyContainerConfigurer template(Object template)
public SimpleNotifyContainerConfigurer performSnapshot(boolean performSnapshot)
@Deprecated public SimpleNotifyContainerConfigurer listenerLease(long listenerLease)
public SimpleNotifyContainerConfigurer notifyFilter(INotifyDelegatorFilter notifyFilter)
public SimpleNotifyContainerConfigurer notifyWrite(boolean notifyWrite)
public SimpleNotifyContainerConfigurer notifyUpdate(boolean notifyUpdate)
public SimpleNotifyContainerConfigurer notifyTake(boolean notifyTake)
public SimpleNotifyContainerConfigurer notifyAll(boolean notifyAll)
public SimpleNotifyContainerConfigurer notifyUnmatched(boolean notifyUnmatched)
public SimpleNotifyContainerConfigurer notifyMatchedUpdate(boolean notifyMatched)
public SimpleNotifyContainerConfigurer notifyRematchedUpdate(boolean notifyRematched)
public SimpleNotifyContainerConfigurer notifyLeaseExpire(boolean notifyLeaseExpire)
@Deprecated public SimpleNotifyContainerConfigurer guaranteed(boolean guaranteed)
durable(boolean)
instead.public SimpleNotifyContainerConfigurer durable(boolean durable)
public SimpleNotifyContainerConfigurer tag(String tag)
tag
- A name/id/tag to identify this durable notification listener endpoint.SimpleNotifyEventListenerContainer.setTag(String)
public SimpleNotifyContainerConfigurer triggerNotifyTemplate(boolean triggerNotifyTemplate)
public SimpleNotifyContainerConfigurer replicateNotifyTemplate(boolean replicateNotifyTemplate)
public SimpleNotifyContainerConfigurer transactionManager(org.springframework.transaction.PlatformTransactionManager transactionManager)
public SimpleNotifyContainerConfigurer transactionName(String transactionName)
public SimpleNotifyContainerConfigurer transactionTimeout(int transactionTimeout)
public SimpleNotifyContainerConfigurer transactionIsolationLevel(int transactionIsolationLevel)
public SimpleNotifyContainerConfigurer exceptionHandler(EventExceptionHandler exceptionHandler)
public SimpleNotifyContainerConfigurer eventListener(SpaceDataEventListener eventListener)
public SimpleNotifyContainerConfigurer eventListenerAnnotation(Object eventListener)
public SimpleNotifyContainerConfigurer eventListenerMethod(Object eventListener, String methodName)
public SimpleNotifyContainerConfigurer activeWhenPrimary(boolean activeWhenPrimary)
public SimpleNotifyContainerConfigurer autoStart(boolean autoStart)
public SimpleNotifyEventListenerContainer create()
SimpleNotifyEventListenerContainer
instance.public SimpleNotifyEventListenerContainer notifyContainer()
SimpleNotifyEventListenerContainer
instance.create()
Copyright © GigaSpaces.