GigaSpaces XAP 7.0 API

org.openspaces.events.notify
Class SimpleNotifyContainerConfigurer

java.lang.Object
  extended by org.openspaces.events.notify.SimpleNotifyContainerConfigurer

public class SimpleNotifyContainerConfigurer
extends Object

A simplified programmatic configuration that for SimpleNotifyEventListenerContainer.

Sample usage:

 UrlSpaceConfigurer urlSpaceConfigurerPrimary = new UrlSpaceConfigurer("/./space");
 GigaSpace gigaSpace = new GigaSpaceConfigurer(urlSpaceConfigurerPrimary.space()).gigaSpace();
 SimpleNotifyEventListenerContainer notifyEventListenerContainer = new SimpleNotifyContainerConfigurer(gigaSpace)
              .template(new TestMessage())
              .eventListenerAnnotation(new Object() {

Author:
kimchy

Constructor Summary
SimpleNotifyContainerConfigurer(GigaSpace gigaSpace)
           
 
Method Summary
 SimpleNotifyContainerConfigurer activeWhenPrimary(boolean activeWhenPrimary)
           
 SimpleNotifyContainerConfigurer autoRenew(boolean autoRenew)
           
 SimpleNotifyContainerConfigurer autoStart(boolean autoStart)
           
 SimpleNotifyContainerConfigurer batchSize(Integer batchSize)
           
 SimpleNotifyContainerConfigurer batchTime(Integer batchTime)
           
 SimpleNotifyContainerConfigurer comType(int comType)
           
 SimpleNotifyContainerConfigurer eventListener(SpaceDataEventListener eventListener)
           
 SimpleNotifyContainerConfigurer eventListenerAnnotation(Object eventListener)
          Sets an event listener that uses annotations
 SimpleNotifyContainerConfigurer eventListenerMethod(Object eventListener, String methodName)
          Sets an event listener that uses method name as an adapter
 SimpleNotifyContainerConfigurer fifo(boolean fifo)
           
 SimpleNotifyContainerConfigurer guaranteed(boolean guaranteed)
           
 SimpleNotifyContainerConfigurer ignoreEventOnNullTake(boolean ignoreEventOnNullTake)
           
 SimpleNotifyContainerConfigurer leaseListener(net.jini.lease.LeaseListener leaseListener)
           
 SimpleNotifyContainerConfigurer listenerLease(long listenerLease)
           
 SimpleNotifyContainerConfigurer name(String name)
           
 SimpleNotifyContainerConfigurer notifyAll(boolean notifyAll)
           
 SimpleNotifyEventListenerContainer notifyContainer()
           
 SimpleNotifyContainerConfigurer notifyFilter(INotifyDelegatorFilter notifyFilter)
           
 SimpleNotifyContainerConfigurer notifyLeaseExpire(boolean notifyLeaseExpire)
           
 SimpleNotifyContainerConfigurer notifyTake(boolean notifyTake)
           
 SimpleNotifyContainerConfigurer notifyUnmatched(boolean notifyUnmatched)
           
 SimpleNotifyContainerConfigurer notifyUpdate(boolean notifyUpdate)
           
 SimpleNotifyContainerConfigurer notifyWrite(boolean notifyWrite)
           
 SimpleNotifyContainerConfigurer passArrayAsIs(boolean passArrayAsIs)
           
 SimpleNotifyContainerConfigurer performSnapshot(boolean performSnapshot)
           
 SimpleNotifyContainerConfigurer performTakeOnNotify(boolean performTakeOnNotify)
           
 SimpleNotifyContainerConfigurer renewDuration(long renewDuration)
           
 SimpleNotifyContainerConfigurer renewExpiration(long renewExpiration)
           
 SimpleNotifyContainerConfigurer renewRTT(long renewRTT)
           
 SimpleNotifyContainerConfigurer replicateNotifyTemplate(boolean replicateNotifyTemplate)
           
 SimpleNotifyContainerConfigurer template(Object template)
           
 SimpleNotifyContainerConfigurer transactionIsolationLevel(int transactionIsolationLevel)
           
 SimpleNotifyContainerConfigurer transactionManager(PlatformTransactionManager transactionManager)
           
 SimpleNotifyContainerConfigurer transactionName(String transactionName)
           
 SimpleNotifyContainerConfigurer transactionTimeout(int transactionTimeout)
           
 SimpleNotifyContainerConfigurer triggerNotifyTemplate(boolean triggerNotifyTemplate)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SimpleNotifyContainerConfigurer

public SimpleNotifyContainerConfigurer(GigaSpace gigaSpace)
Method Detail

name

public SimpleNotifyContainerConfigurer name(String name)

performTakeOnNotify

public SimpleNotifyContainerConfigurer performTakeOnNotify(boolean performTakeOnNotify)
See Also:
SimpleNotifyEventListenerContainer.setPerformTakeOnNotify(boolean)

ignoreEventOnNullTake

public SimpleNotifyContainerConfigurer ignoreEventOnNullTake(boolean ignoreEventOnNullTake)
See Also:
SimpleNotifyEventListenerContainer.setIgnoreEventOnNullTake(boolean)

comType

public SimpleNotifyContainerConfigurer comType(int comType)
See Also:
AbstractNotifyEventListenerContainer.setComType(int)

fifo

public SimpleNotifyContainerConfigurer fifo(boolean fifo)
See Also:
AbstractNotifyEventListenerContainer.setFifo(boolean)

passArrayAsIs

public SimpleNotifyContainerConfigurer passArrayAsIs(boolean passArrayAsIs)
See Also:
AbstractNotifyEventListenerContainer.setPassArrayAsIs(boolean)

batchSize

public SimpleNotifyContainerConfigurer batchSize(Integer batchSize)
See Also:
AbstractNotifyEventListenerContainer.setBatchSize(Integer)

batchTime

public SimpleNotifyContainerConfigurer batchTime(Integer batchTime)
See Also:
AbstractNotifyEventListenerContainer.setBatchTime(Integer)

autoRenew

public SimpleNotifyContainerConfigurer autoRenew(boolean autoRenew)
See Also:
AbstractNotifyEventListenerContainer.setAutoRenew(boolean)

renewExpiration

public SimpleNotifyContainerConfigurer renewExpiration(long renewExpiration)
See Also:
AbstractNotifyEventListenerContainer.setRenewExpiration(long)

renewDuration

public SimpleNotifyContainerConfigurer renewDuration(long renewDuration)
See Also:
AbstractNotifyEventListenerContainer.setRenewDuration(long)

renewRTT

public SimpleNotifyContainerConfigurer renewRTT(long renewRTT)
See Also:
AbstractNotifyEventListenerContainer.setRenewRTT(long)

leaseListener

public SimpleNotifyContainerConfigurer leaseListener(net.jini.lease.LeaseListener leaseListener)
See Also:
AbstractNotifyEventListenerContainer.setLeaseListener(net.jini.lease.LeaseListener)

template

public SimpleNotifyContainerConfigurer template(Object template)
See Also:
AbstractTemplateEventListenerContainer.setTemplate(Object)

performSnapshot

public SimpleNotifyContainerConfigurer performSnapshot(boolean performSnapshot)
See Also:
AbstractTemplateEventListenerContainer.setPerformSnapshot(boolean)

listenerLease

public SimpleNotifyContainerConfigurer listenerLease(long listenerLease)
See Also:
AbstractNotifyEventListenerContainer.setListenerLease(long)

notifyFilter

public SimpleNotifyContainerConfigurer notifyFilter(INotifyDelegatorFilter notifyFilter)
See Also:
AbstractNotifyEventListenerContainer.setNotifyFilter(com.j_spaces.core.client.INotifyDelegatorFilter)

notifyWrite

public SimpleNotifyContainerConfigurer notifyWrite(boolean notifyWrite)
See Also:
AbstractNotifyEventListenerContainer.setNotifyWrite(Boolean)

notifyUpdate

public SimpleNotifyContainerConfigurer notifyUpdate(boolean notifyUpdate)
See Also:
AbstractNotifyEventListenerContainer.setNotifyUpdate(Boolean)

notifyTake

public SimpleNotifyContainerConfigurer notifyTake(boolean notifyTake)
See Also:
AbstractNotifyEventListenerContainer.setNotifyTake(Boolean)

notifyAll

public SimpleNotifyContainerConfigurer notifyAll(boolean notifyAll)
See Also:
AbstractNotifyEventListenerContainer.setNotifyAll(Boolean)

notifyUnmatched

public SimpleNotifyContainerConfigurer notifyUnmatched(boolean notifyUnmatched)
See Also:
AbstractNotifyEventListenerContainer.setNotifyUnmatched(Boolean)

notifyLeaseExpire

public SimpleNotifyContainerConfigurer notifyLeaseExpire(boolean notifyLeaseExpire)
See Also:
AbstractNotifyEventListenerContainer.setNotifyLeaseExpire(Boolean)

guaranteed

public SimpleNotifyContainerConfigurer guaranteed(boolean guaranteed)
See Also:
AbstractNotifyEventListenerContainer.setGuaranteed(Boolean)

triggerNotifyTemplate

public SimpleNotifyContainerConfigurer triggerNotifyTemplate(boolean triggerNotifyTemplate)
See Also:
AbstractNotifyEventListenerContainer.setTriggerNotifyTemplate(boolean)

replicateNotifyTemplate

public SimpleNotifyContainerConfigurer replicateNotifyTemplate(boolean replicateNotifyTemplate)
See Also:
AbstractNotifyEventListenerContainer.setReplicateNotifyTemplate(boolean)

transactionManager

public SimpleNotifyContainerConfigurer transactionManager(PlatformTransactionManager transactionManager)
See Also:
AbstractTransactionalEventListenerContainer.setTransactionManager(org.springframework.transaction.PlatformTransactionManager)

transactionName

public SimpleNotifyContainerConfigurer transactionName(String transactionName)
See Also:
AbstractTransactionalEventListenerContainer.setTransactionName(String)

transactionTimeout

public SimpleNotifyContainerConfigurer transactionTimeout(int transactionTimeout)
See Also:
AbstractTransactionalEventListenerContainer.setTransactionTimeout(int)

transactionIsolationLevel

public SimpleNotifyContainerConfigurer transactionIsolationLevel(int transactionIsolationLevel)
See Also:
AbstractTransactionalEventListenerContainer.setTransactionIsolationLevel(int)

eventListener

public SimpleNotifyContainerConfigurer eventListener(SpaceDataEventListener eventListener)
See Also:
AbstractEventListenerContainer.setEventListener(org.openspaces.events.SpaceDataEventListener)

eventListenerAnnotation

public SimpleNotifyContainerConfigurer eventListenerAnnotation(Object eventListener)
Sets an event listener that uses annotations

See Also:
AbstractEventListenerContainer.setEventListener(org.openspaces.events.SpaceDataEventListener), AnnotationEventListenerAdapter

eventListenerMethod

public SimpleNotifyContainerConfigurer eventListenerMethod(Object eventListener,
                                                           String methodName)
Sets an event listener that uses method name as an adapter

See Also:
AbstractEventListenerContainer.setEventListener(org.openspaces.events.SpaceDataEventListener), MethodEventListenerAdapter

activeWhenPrimary

public SimpleNotifyContainerConfigurer activeWhenPrimary(boolean activeWhenPrimary)
See Also:
AbstractSpaceListeningContainer.setActiveWhenPrimary(boolean)

autoStart

public SimpleNotifyContainerConfigurer autoStart(boolean autoStart)
See Also:
AbstractSpaceListeningContainer.setAutoStart(boolean)

notifyContainer

public SimpleNotifyEventListenerContainer notifyContainer()

GigaSpaces XAP 7.0 API

Copyright © GigaSpaces.