Interface Lease

  • All Superinterfaces:
    AutoCloseable, Closeable

    public interface Lease
    extends Closeable
    Represents an acquired lease from an InterProcessSemaphore. It is the client's responsibility to close this lease when it is no longer needed so that other blocked clients can use it. If the client crashes (or its session expires, etc.) the lease will automatically be closed.
    • Method Detail

      • getData

        byte[] getData()
                throws Exception
        Return the data stored in the node for this lease
        Returns:
        data
        Throws:
        Exception - errors
      • getNodeName

        String getNodeName()
        Return the the node for this lease
        Returns:
        data
        Throws:
        Exception - errors