public class SimpleAsyncPollingContainerConfigurer extends Object
SimpleAsyncPollingEventListenerContainer
.
Sample usage:
UrlSpaceConfigurer urlSpaceConfigurerPrimary = new UrlSpaceConfigurer("/./space");
GigaSpace gigaSpace = new GigaSpaceConfigurer(urlSpaceConfigurerPrimary.space()).gigaSpace();
SimpleAsyncPollingEventListenerContainer pollingEventListenerContainer = new
SimpleAsyncPollingContainerConfigurer(gigaSpace)
.template(new TestMessage())
.eventListenerAnnotation(new Object() {
@SpaceDataEvent
public void gotMeselfAnEvent() {
// do something
}
}).asyncPollingContainer();
...
pollingEventListenerContainer.destroy();
urlSpaceConfigurerPrimary.destroy();
SimpleAsyncPollingEventListenerContainer
Constructor and Description |
---|
SimpleAsyncPollingContainerConfigurer(GigaSpace gigaSpace) |
public SimpleAsyncPollingContainerConfigurer(GigaSpace gigaSpace)
public SimpleAsyncPollingContainerConfigurer name(String name)
public SimpleAsyncPollingContainerConfigurer concurrentConsumers(int concurrentConsumers)
public SimpleAsyncPollingContainerConfigurer receiveTimeout(long receiveTimeout)
public SimpleAsyncPollingContainerConfigurer asyncOperationHandler(AsyncOperationHandler operationHandler)
public SimpleAsyncPollingContainerConfigurer template(Object template)
public SimpleAsyncPollingContainerConfigurer performSnapshot(boolean performSnapshot)
public SimpleAsyncPollingContainerConfigurer transactionManager(org.springframework.transaction.PlatformTransactionManager transactionManager)
public SimpleAsyncPollingContainerConfigurer transactionName(String transactionName)
public SimpleAsyncPollingContainerConfigurer transactionTimeout(int transactionTimeout)
public SimpleAsyncPollingContainerConfigurer transactionIsolationLevel(int transactionIsolationLevel)
public SimpleAsyncPollingContainerConfigurer exceptionHandler(EventExceptionHandler exceptionHandler)
public SimpleAsyncPollingContainerConfigurer eventListener(SpaceDataEventListener eventListener)
public SimpleAsyncPollingContainerConfigurer eventListenerAnnotation(Object eventListener)
public SimpleAsyncPollingContainerConfigurer eventListenerMethod(Object eventListener, String methodName)
public SimpleAsyncPollingContainerConfigurer activeWhenPrimary(boolean activeWhenPrimary)
public SimpleAsyncPollingContainerConfigurer autoStart(boolean autoStart)
public SimpleAsyncPollingContainerConfigurer dynamicTemplate(DynamicEventTemplateProvider templateProvider)
public SimpleAsyncPollingContainerConfigurer dynamicTemplateMethod(Object templateProvider, String methodName)
public SimpleAsyncPollingContainerConfigurer dynamicTemplateAnnotation(Object templateProvider)
public SimpleAsyncPollingEventListenerContainer create()
SimpleAsyncPollingEventListenerContainer
instance.public SimpleAsyncPollingEventListenerContainer pollingContainer()
SimpleAsyncPollingEventListenerContainer
instance.create()
Copyright © GigaSpaces.