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(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)
org.openspaces.events.polling.SimplePollingEventListenerContainer#setTemplateProvider()
public SimpleAsyncPollingContainerConfigurer dynamicTemplateMethod(Object templateProvider, String methodName)
org.openspaces.events.adapter.MethodTemplateProviderAdapter
public SimpleAsyncPollingContainerConfigurer dynamicTemplateAnnotation(Object templateProvider)
public SimpleAsyncPollingEventListenerContainer create()
SimpleAsyncPollingEventListenerContainer
instance.public SimpleAsyncPollingEventListenerContainer pollingContainer()
SimpleAsyncPollingEventListenerContainer
instance.create()
Copyright © GigaSpaces.