GigaSpaces - Open Spaces

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

Required Element Summary
 long lease
          Controls the lease associated with the registered listener.
 
Optional Element Summary
 Class<net.jini.lease.LeaseListener> leaseListener
          Sets the lease listener for the lease.
 

Element Detail

lease

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

See Also:
AbstractNotifyEventListenerContainer.setListenerLease(long)

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 - Open Spaces

Copyright © GigaSpaces.