GigaSpaces XAP 9.7.2 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() {
                  @SpaceDataEvent public void gotMeselfAnEvent() {
                      // do something
                  }
              }).notifyContainer();

 ...

 notifyEventListenerContainer.destroy();
 urlSpaceConfigurerPrimary.destroy();
 

Author:
kimchy

Constructor Summary
SimpleNotifyContainerConfigurer(GigaSpace gigaSpace)
           
 
Method Summary
 SimpleNotifyContainerConfigurer activeWhenPrimary(boolean activeWhenPrimary)
           
 SimpleNotifyContainerConfigurer autoRenew(boolean autoRenew)
           
 SimpleNotifyContainerConfigurer autoStart(boolean autoStart)
           
 SimpleNotifyContainerConfigurer batchPendingThreshold(Integer batchPendingThreshold)
           
 SimpleNotifyContainerConfigurer batchSize(Integer batchSize)
           
 SimpleNotifyContainerConfigurer batchTime(Integer batchTime)
           
 SimpleNotifyContainerConfigurer comType(int comType)
          Deprecated. This configuration is redundant and has no affect.
 SimpleNotifyEventListenerContainer create()
          Creates a new SimpleNotifyEventListenerContainer instance.
 SimpleNotifyContainerConfigurer durable(boolean durable)
           
 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 exceptionHandler(EventExceptionHandler exceptionHandler)
           
 SimpleNotifyContainerConfigurer fifo(boolean fifo)
           
 SimpleNotifyContainerConfigurer guaranteed(boolean guaranteed)
          Deprecated. Since 9.0 use durable(boolean) instead.
 SimpleNotifyContainerConfigurer ignoreEventOnNullTake(boolean ignoreEventOnNullTake)
           
 SimpleNotifyContainerConfigurer leaseListener(LeaseListener leaseListener)
           
 SimpleNotifyContainerConfigurer listenerLease(long listenerLease)
          Deprecated. Since 9.7 - event listener with custom lease is deprecated.
 SimpleNotifyContainerConfigurer name(String name)
           
 SimpleNotifyContainerConfigurer notifyAll(boolean notifyAll)
           
 SimpleNotifyEventListenerContainer notifyContainer()
          Creates a new SimpleNotifyEventListenerContainer instance.
 SimpleNotifyContainerConfigurer notifyFilter(INotifyDelegatorFilter notifyFilter)
           
 SimpleNotifyContainerConfigurer notifyLeaseExpire(boolean notifyLeaseExpire)
           
 SimpleNotifyContainerConfigurer notifyMatchedUpdate(boolean notifyMatched)
           
 SimpleNotifyContainerConfigurer notifyRematchedUpdate(boolean notifyRematched)
           
 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)
          Deprecated. 
 SimpleNotifyContainerConfigurer renewExpiration(long renewExpiration)
          Deprecated. 
 SimpleNotifyContainerConfigurer renewRTT(long renewRTT)
          Deprecated. 
 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

@Deprecated
public SimpleNotifyContainerConfigurer comType(int comType)
Deprecated. This configuration is redundant and has no affect.

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)

batchPendingThreshold

public SimpleNotifyContainerConfigurer batchPendingThreshold(Integer batchPendingThreshold)
See Also:
AbstractNotifyEventListenerContainer.setBatchPendingThreshold(Integer)

autoRenew

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

renewExpiration

@Deprecated
public SimpleNotifyContainerConfigurer renewExpiration(long renewExpiration)
Deprecated. 

See Also:
AbstractNotifyEventListenerContainer.setRenewExpiration(long)

renewDuration

@Deprecated
public SimpleNotifyContainerConfigurer renewDuration(long renewDuration)
Deprecated. 

See Also:
AbstractNotifyEventListenerContainer.setRenewDuration(long)

renewRTT

@Deprecated
public SimpleNotifyContainerConfigurer renewRTT(long renewRTT)
Deprecated. 

See Also:
AbstractNotifyEventListenerContainer.setRenewRTT(long)

leaseListener

public SimpleNotifyContainerConfigurer leaseListener(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

@Deprecated
public SimpleNotifyContainerConfigurer listenerLease(long listenerLease)
Deprecated. Since 9.7 - event listener with custom lease is deprecated.

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)

notifyMatchedUpdate

public SimpleNotifyContainerConfigurer notifyMatchedUpdate(boolean notifyMatched)
See Also:
AbstractNotifyEventListenerContainer.setNotifyMatchedUpdate(Boolean)

notifyRematchedUpdate

public SimpleNotifyContainerConfigurer notifyRematchedUpdate(boolean notifyRematched)
See Also:
AbstractNotifyEventListenerContainer.setNotifyRematchedUpdate(Boolean)

notifyLeaseExpire

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

guaranteed

@Deprecated
public SimpleNotifyContainerConfigurer guaranteed(boolean guaranteed)
Deprecated. Since 9.0 use durable(boolean) instead.

See Also:
AbstractNotifyEventListenerContainer.setGuaranteed(Boolean)

durable

public SimpleNotifyContainerConfigurer durable(boolean durable)
See Also:
AbstractNotifyEventListenerContainer.setDurable(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)

exceptionHandler

public SimpleNotifyContainerConfigurer exceptionHandler(EventExceptionHandler exceptionHandler)
See Also:
AbstractEventListenerContainer.setExceptionHandler(org.openspaces.events.EventExceptionHandler)

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)

create

public SimpleNotifyEventListenerContainer create()
Creates a new SimpleNotifyEventListenerContainer instance.


notifyContainer

public SimpleNotifyEventListenerContainer notifyContainer()
Creates a new SimpleNotifyEventListenerContainer instance.

See Also:
create()

GigaSpaces XAP 9.7.2 API

Copyright © GigaSpaces.