Annotation Interface NotifyLease


@Target(TYPE) @Retention(RUNTIME) @Deprecated public @interface NotifyLease
Deprecated.
Since 9.7 - event listener with custom lease or custom auto-renew is deprecated.
Marking with this annotation will cause the notify container to have a lease (automatically sets true to SimpleNotifyEventListenerContainer.setAutoRenew(boolean).
Author:
kimchy
  • Optional Element Summary

    Optional Elements
    Modifier and Type
    Optional Element
    Description
    long
    Deprecated.
    Controls the lease associated with the registered listener.
    Class<? extends LeaseListener>
    Deprecated.
    Sets the lease listener for the lease.
    long
    Deprecated.
    The period of time that passes between client failure, and the time your notifications stop being sent.
    long
    Deprecated.
    The period of time your notifications stop being renewed.
    long
    Deprecated.
    RoundTripTime - the time that takes to reach the server and return.
  • Element Details

    • lease

      long lease
      Deprecated.
      Controls the lease associated with the registered listener. Defaults to Lease.FOREVER.
      See Also:
      Default:
      9223372036854775807L
    • renewExpiration

      long renewExpiration
      Deprecated.
      The period of time your notifications stop being renewed.
      Default:
      9223372036854775807L
    • renewDuration

      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

      long renewRTT
      Deprecated.
      RoundTripTime - the time that takes to reach the server and return.
      Default:
      10000L
    • leaseListener

      Class<? extends LeaseListener> leaseListener
      Deprecated.
      Sets the lease listener for the lease. Default to no listener.
      See Also:
      Default:
      net.jini.lease.LeaseListener.class