|
GigaSpaces XAP 9.7.2 API | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.openspaces.events.polling.SimplePollingContainerConfigurer
public class SimplePollingContainerConfigurer
A simplified programmatic configuration that for 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 Summary | |
---|---|
SimplePollingContainerConfigurer(GigaSpace gigaSpace)
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public SimplePollingContainerConfigurer(GigaSpace gigaSpace)
Method Detail |
---|
public SimplePollingContainerConfigurer name(String name)
public SimplePollingContainerConfigurer taskExecutor(TaskExecutor taskExecutor)
SimplePollingEventListenerContainer.setTaskExecutor(org.springframework.core.task.TaskExecutor)
public SimplePollingContainerConfigurer recoveryInterval(long recoveryInterval)
SimplePollingEventListenerContainer.setRecoveryInterval(long)
public SimplePollingContainerConfigurer concurrentConsumers(int concurrentConsumers)
SimplePollingEventListenerContainer.setConcurrentConsumers(int)
public SimplePollingContainerConfigurer maxConcurrentConsumers(int maxConcurrentConsumers)
SimplePollingEventListenerContainer.setMaxConcurrentConsumers(int)
public SimplePollingContainerConfigurer maxEventsPerTask(int maxEventsPerTask)
SimplePollingEventListenerContainer.setMaxEventsPerTask(int)
public SimplePollingContainerConfigurer idleTaskExecutionLimit(int idleTaskExecutionLimit)
SimplePollingEventListenerContainer.setIdleTaskExecutionLimit(int)
public SimplePollingContainerConfigurer passArrayAsIs(boolean passArrayAsIs)
AbstractPollingEventListenerContainer.setPassArrayAsIs(boolean)
public SimplePollingContainerConfigurer receiveTimeout(long receiveTimeout)
AbstractPollingEventListenerContainer.setReceiveTimeout(long)
public SimplePollingContainerConfigurer receiveOperationHandler(ReceiveOperationHandler receiveOperationHandler)
AbstractPollingEventListenerContainer.setReceiveOperationHandler(org.openspaces.events.polling.receive.ReceiveOperationHandler)
public SimplePollingContainerConfigurer triggerOperationHandler(TriggerOperationHandler triggerOperationHandler)
AbstractPollingEventListenerContainer.setTriggerOperationHandler(org.openspaces.events.polling.trigger.TriggerOperationHandler)
public SimplePollingContainerConfigurer template(Object template)
AbstractTemplateEventListenerContainer.setTemplate(Object)
public SimplePollingContainerConfigurer performSnapshot(boolean performSnapshot)
AbstractTemplateEventListenerContainer.setPerformSnapshot(boolean)
public SimplePollingContainerConfigurer transactionManager(PlatformTransactionManager transactionManager)
AbstractTransactionalEventListenerContainer.setTransactionManager(org.springframework.transaction.PlatformTransactionManager)
public SimplePollingContainerConfigurer transactionName(String transactionName)
AbstractTransactionalEventListenerContainer.setTransactionName(String)
public SimplePollingContainerConfigurer transactionTimeout(int transactionTimeout)
AbstractTransactionalEventListenerContainer.setTransactionTimeout(int)
public SimplePollingContainerConfigurer transactionIsolationLevel(int transactionIsolationLevel)
AbstractTransactionalEventListenerContainer.setTransactionIsolationLevel(int)
public SimplePollingContainerConfigurer exceptionHandler(EventExceptionHandler exceptionHandler)
AbstractEventListenerContainer.setExceptionHandler(org.openspaces.events.EventExceptionHandler)
public SimplePollingContainerConfigurer eventListener(SpaceDataEventListener eventListener)
AbstractEventListenerContainer.setEventListener(org.openspaces.events.SpaceDataEventListener)
public SimplePollingContainerConfigurer eventListenerAnnotation(Object eventListener)
AbstractEventListenerContainer.setEventListener(org.openspaces.events.SpaceDataEventListener)
,
AnnotationEventListenerAdapter
public SimplePollingContainerConfigurer eventListenerMethod(Object eventListener, String methodName)
AbstractEventListenerContainer.setEventListener(org.openspaces.events.SpaceDataEventListener)
,
MethodEventListenerAdapter
public SimplePollingContainerConfigurer activeWhenPrimary(boolean activeWhenPrimary)
AbstractSpaceListeningContainer.setActiveWhenPrimary(boolean)
public SimplePollingContainerConfigurer autoStart(boolean autoStart)
AbstractSpaceListeningContainer.setAutoStart(boolean)
public SimplePollingContainerConfigurer dynamicTemplate(DynamicEventTemplateProvider templateProvider)
org.openspaces.events.polling.SimplePollingEventListenerContainer#setTemplateProvider()
public SimplePollingContainerConfigurer dynamicTemplateMethod(Object templateProvider, String methodName)
org.openspaces.events.adapter.MethodTemplateProviderAdapter
public SimplePollingContainerConfigurer dynamicTemplateAnnotation(Object templateProvider)
AnnotationDynamicEventTemplateProviderAdapter
public SimplePollingEventListenerContainer create()
SimplePollingEventListenerContainer
instance.
public SimplePollingEventListenerContainer pollingContainer()
SimplePollingEventListenerContainer
instance.
create()
|
GigaSpaces XAP 9.7.2 API | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |