|
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.asyncpolling.SimpleAsyncPollingContainerConfigurer
public class SimpleAsyncPollingContainerConfigurer
A simplified programmatic configuration that for 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 Summary | |
---|---|
SimpleAsyncPollingContainerConfigurer(GigaSpace gigaSpace)
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public SimpleAsyncPollingContainerConfigurer(GigaSpace gigaSpace)
Method Detail |
---|
public SimpleAsyncPollingContainerConfigurer name(String name)
AbstractSpaceListeningContainer.setBeanName(String)
public SimpleAsyncPollingContainerConfigurer concurrentConsumers(int concurrentConsumers)
SimpleAsyncPollingEventListenerContainer.setConcurrentConsumers(int)
public SimpleAsyncPollingContainerConfigurer receiveTimeout(long receiveTimeout)
SimpleAsyncPollingEventListenerContainer.setReceiveTimeout(long)
public SimpleAsyncPollingContainerConfigurer asyncOperationHandler(AsyncOperationHandler operationHandler)
public SimpleAsyncPollingContainerConfigurer template(Object template)
AbstractTemplateEventListenerContainer.setTemplate(Object)
public SimpleAsyncPollingContainerConfigurer performSnapshot(boolean performSnapshot)
AbstractTemplateEventListenerContainer.setPerformSnapshot(boolean)
public SimpleAsyncPollingContainerConfigurer transactionManager(PlatformTransactionManager transactionManager)
AbstractTransactionalEventListenerContainer.setTransactionManager(org.springframework.transaction.PlatformTransactionManager)
public SimpleAsyncPollingContainerConfigurer transactionName(String transactionName)
AbstractTransactionalEventListenerContainer.setTransactionName(String)
public SimpleAsyncPollingContainerConfigurer transactionTimeout(int transactionTimeout)
AbstractTransactionalEventListenerContainer.setTransactionTimeout(int)
public SimpleAsyncPollingContainerConfigurer transactionIsolationLevel(int transactionIsolationLevel)
AbstractTransactionalEventListenerContainer.setTransactionIsolationLevel(int)
public SimpleAsyncPollingContainerConfigurer exceptionHandler(EventExceptionHandler exceptionHandler)
AbstractEventListenerContainer.setExceptionHandler(org.openspaces.events.EventExceptionHandler)
public SimpleAsyncPollingContainerConfigurer eventListener(SpaceDataEventListener eventListener)
AbstractEventListenerContainer.setEventListener(org.openspaces.events.SpaceDataEventListener)
public SimpleAsyncPollingContainerConfigurer eventListenerAnnotation(Object eventListener)
AbstractEventListenerContainer.setEventListener(org.openspaces.events.SpaceDataEventListener)
,
AnnotationEventListenerAdapter
public SimpleAsyncPollingContainerConfigurer eventListenerMethod(Object eventListener, String methodName)
AbstractEventListenerContainer.setEventListener(org.openspaces.events.SpaceDataEventListener)
,
MethodEventListenerAdapter
public SimpleAsyncPollingContainerConfigurer activeWhenPrimary(boolean activeWhenPrimary)
AbstractSpaceListeningContainer.setActiveWhenPrimary(boolean)
public SimpleAsyncPollingContainerConfigurer autoStart(boolean autoStart)
AbstractSpaceListeningContainer.setAutoStart(boolean)
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)
AnnotationDynamicEventTemplateProviderAdapter
public SimpleAsyncPollingEventListenerContainer create()
SimpleAsyncPollingEventListenerContainer
instance.
public SimpleAsyncPollingEventListenerContainer pollingContainer()
SimpleAsyncPollingEventListenerContainer
instance.
create()
|
GigaSpaces XAP 9.7.2 API | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |