Class LockOwner

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

    public class LockOwner
    extends Object
    implements com.tangosol.io.ExternalizableLite, com.tangosol.io.pof.PortableObject
    The identity of a lock owner, represented by the UID of the member, and the ID of a thread holding or attempting to acquire the lock.
    Author:
    Aleks Seovic 2021.10.19
    See Also:
    Serialized Form
    • Constructor Detail

      • LockOwner

        public LockOwner()
        Default constructor for serialization interfaces
      • LockOwner

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

      • getMemberId

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

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

        public boolean isClient()
        Return true if this lock owner is a remote client (Extend or gRPC).
        Returns:
        true if this lock owner 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