Class PermitAcquirer

  • All Implemented Interfaces:
    com.tangosol.io.ExternalizableLite, com.tangosol.io.pof.PortableObject, Serializable

    public class PermitAcquirer
    extends Object
    implements com.tangosol.io.ExternalizableLite, com.tangosol.io.pof.PortableObject
    The identity of a acquirer, represented by the UUID of the member, and the ID of a thread holding or attempting to acquire permit.
    Author:
    Vaso Putica 2021.11.30
    See Also:
    Serialized Form
    • Constructor Detail

      • PermitAcquirer

        public PermitAcquirer()
        Default constructor (necessary for the ExternalizableLite interface).
      • PermitAcquirer

        public PermitAcquirer​(com.tangosol.net.Member member,
                              long threadId)
        Construct PermitAcquirer instance.
        Parameters:
        member - the member
        threadId - the thread ID
    • Method Detail

      • getMemberId

        public com.tangosol.util.UUID getMemberId()
        Return the member UUID.
        Returns:
        the member UUID
      • getThreadId

        public long getThreadId()
        Return the thread ID.
        Returns:
        the thread ID
      • isClient

        public boolean isClient()
        Return true if this permit acquirer is a remote client (Extend or gRPC).
        Returns:
        true if this permit acquirer is a remote client (Extend or gRPC)
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class Object
      • readExternal

        public void readExternal​(DataInput in)
                          throws IOException
        Specified by:
        readExternal in interface com.tangosol.io.ExternalizableLite
        Throws:
        IOException
      • writeExternal

        public void writeExternal​(DataOutput out)
                           throws IOException
        Specified by:
        writeExternal in interface com.tangosol.io.ExternalizableLite
        Throws:
        IOException
      • readExternal

        public void readExternal​(com.tangosol.io.pof.PofReader in)
                          throws IOException
        Specified by:
        readExternal in interface com.tangosol.io.pof.PortableObject
        Throws:
        IOException
      • writeExternal

        public void writeExternal​(com.tangosol.io.pof.PofWriter out)
                           throws IOException
        Specified by:
        writeExternal in interface com.tangosol.io.pof.PortableObject
        Throws:
        IOException