GigaSpaces XAP 10.0.1 API

org.openspaces.events.notify
Annotation Type NotifyLease


Deprecated. Since 9.7 - event listener with custom lease or custom auto-renew is deprecated.

@Target(value=TYPE)
@Retention(value=RUNTIME)
@Deprecated
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
          Deprecated. Controls the lease associated with the registered listener.
 Class<? extends LeaseListener> leaseListener
          Deprecated. Sets the lease listener for the lease.
 long renewDuration
          Deprecated. The period of time that passes between client failure, and the time your notifications stop being sent.
 long renewExpiration
          Deprecated. The period of time your notifications stop being renewed.
 long renewRTT
          Deprecated. RoundTripTime - the time that takes to reach the server and return.
 

lease

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

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

renewExpiration

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

Default:
9223372036854775807L

renewDuration

public abstract long renewDuration
Deprecated. 
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
Deprecated. 
RoundTripTime - the time that takes to reach the server and return.

Default:
10000L

leaseListener

public abstract Class<? extends LeaseListener> leaseListener
Deprecated. 
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 10.0.1 API

Copyright © GigaSpaces.