public class SimplePollingContainerConfigurer extends Object
SimplePollingEventListenerContainer
.
Sample usage:
UrlSpaceConfigurer urlSpaceConfigurerPrimary = new UrlSpaceConfigurer("/./space");
GigaSpace gigaSpace = new GigaSpaceConfigurer(urlSpaceConfigurerPrimary.space()).gigaSpace();
SimplePollingEventListenerContainer pollingEventListenerContainer = new
SimplePollingContainerConfigurer(gigaSpace)
.template(new TestMessage())
.eventListenerAnnotation(new Object() {
@SpaceDataEvent
public void gotMeselfAnEvent() {
// do something
}
}).notifyContainer();
...
pollingEventListenerContainer.destroy();
urlSpaceConfigurerPrimary.destroy();
Constructor and Description |
---|
SimplePollingContainerConfigurer(GigaSpace gigaSpace) |
public SimplePollingContainerConfigurer(GigaSpace gigaSpace)
public SimplePollingContainerConfigurer name(String name)
public SimplePollingContainerConfigurer taskExecutor(org.springframework.core.task.TaskExecutor taskExecutor)
public SimplePollingContainerConfigurer recoveryInterval(long recoveryInterval)
public SimplePollingContainerConfigurer concurrentConsumers(int concurrentConsumers)
public SimplePollingContainerConfigurer maxConcurrentConsumers(int maxConcurrentConsumers)
public SimplePollingContainerConfigurer maxEventsPerTask(int maxEventsPerTask)
public SimplePollingContainerConfigurer idleTaskExecutionLimit(int idleTaskExecutionLimit)
public SimplePollingContainerConfigurer passArrayAsIs(boolean passArrayAsIs)
public SimplePollingContainerConfigurer receiveTimeout(long receiveTimeout)
public SimplePollingContainerConfigurer receiveOperationHandler(ReceiveOperationHandler receiveOperationHandler)
public SimplePollingContainerConfigurer triggerOperationHandler(TriggerOperationHandler triggerOperationHandler)
public SimplePollingContainerConfigurer template(Object template)
public SimplePollingContainerConfigurer performSnapshot(boolean performSnapshot)
public SimplePollingContainerConfigurer transactionManager(org.springframework.transaction.PlatformTransactionManager transactionManager)
public SimplePollingContainerConfigurer transactionName(String transactionName)
public SimplePollingContainerConfigurer transactionTimeout(int transactionTimeout)
public SimplePollingContainerConfigurer transactionIsolationLevel(int transactionIsolationLevel)
public SimplePollingContainerConfigurer exceptionHandler(EventExceptionHandler exceptionHandler)
public SimplePollingContainerConfigurer eventListener(SpaceDataEventListener eventListener)
public SimplePollingContainerConfigurer eventListenerAnnotation(Object eventListener)
public SimplePollingContainerConfigurer eventListenerMethod(Object eventListener, String methodName)
public SimplePollingContainerConfigurer activeWhenPrimary(boolean activeWhenPrimary)
public SimplePollingContainerConfigurer autoStart(boolean autoStart)
public SimplePollingContainerConfigurer dynamicTemplate(DynamicEventTemplateProvider templateProvider)
public SimplePollingContainerConfigurer dynamicTemplateMethod(Object templateProvider, String methodName)
public SimplePollingContainerConfigurer dynamicTemplateAnnotation(Object templateProvider)
public SimplePollingEventListenerContainer create()
SimplePollingEventListenerContainer
instance.public SimplePollingEventListenerContainer pollingContainer()
SimplePollingEventListenerContainer
instance.create()
Copyright © GigaSpaces.