GigaSpaces XAP 7.0 API

org.openspaces.events.notify
Annotation Type NotifyLease


@Target(value=TYPE)
@Retention(value=RUNTIME)
public @interface NotifyLease

Marking with this annotation will cause the notify container to have a lease (automatically sets true to AbstractNotifyEventListenerContainer.setAutoRenew(boolean).

Author:
kimchy

Optional Element Summary
 long lease
          Controls the lease associated with the registered listener.
 Class<net.jini.lease.LeaseListener> leaseListener
          Sets the lease listener for the lease.
 long renewDuration
          The period of time that passes between client failure, and the time your notifications stop being sent.
 long renewExpiration
          The period of time your notifications stop being renewed.
 long renewRTT
          RoundTripTime - the time that takes to reach the server and return.
 

lease

public abstract long lease
Controls the lease associated with the registered listener. Defaults to Lease.FOREVER.

See Also:
AbstractNotifyEventListenerContainer.setListenerLease(long)
Default:
9223372036854775807L

renewExpiration

public abstract long renewExpiration
The period of time your notifications stop being renewed.

Default:
9223372036854775807L

renewDuration

public abstract long renewDuration
The period of time that passes between client failure, and the time your notifications stop being sent. use more than renewRTT.

Default:
20000L

renewRTT

public abstract long renewRTT
RoundTripTime - the time that takes to reach the server and return.

Default:
10000L

leaseListener

public abstract Class<net.jini.lease.LeaseListener> leaseListener
Sets the lease listener for the lease. Default to no listener.

See Also:
AbstractNotifyEventListenerContainer.setLeaseListener(net.jini.lease.LeaseListener)
Default:
net.jini.lease.LeaseListener.class

GigaSpaces XAP 7.0 API

Copyright © GigaSpaces.