Package com.oracle.coherence.concurrent
Class PermitAcquirer
- java.lang.Object
-
- com.oracle.coherence.concurrent.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 Summary
Constructors Constructor Description PermitAcquirer()Default constructor (necessary for the ExternalizableLite interface).PermitAcquirer(com.tangosol.net.Member member, long threadId)ConstructPermitAcquirerinstance.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanequals(Object o)com.tangosol.util.UUIDgetMemberId()Return the member UUID.longgetThreadId()Return the thread ID.inthashCode()booleanisClient()Returntrueif this permit acquirer is a remote client (Extend or gRPC).voidreadExternal(com.tangosol.io.pof.PofReader in)voidreadExternal(DataInput in)StringtoString()voidwriteExternal(com.tangosol.io.pof.PofWriter out)voidwriteExternal(DataOutput out)
-
-
-
Constructor Detail
-
PermitAcquirer
public PermitAcquirer()
Default constructor (necessary for the ExternalizableLite interface).
-
PermitAcquirer
public PermitAcquirer(com.tangosol.net.Member member, long threadId)ConstructPermitAcquirerinstance.- Parameters:
member- the memberthreadId- 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()
Returntrueif this permit acquirer is a remote client (Extend or gRPC).- Returns:
trueif this permit acquirer is a remote client (Extend or gRPC)
-
readExternal
public void readExternal(DataInput in) throws IOException
- Specified by:
readExternalin interfacecom.tangosol.io.ExternalizableLite- Throws:
IOException
-
writeExternal
public void writeExternal(DataOutput out) throws IOException
- Specified by:
writeExternalin interfacecom.tangosol.io.ExternalizableLite- Throws:
IOException
-
readExternal
public void readExternal(com.tangosol.io.pof.PofReader in) throws IOException- Specified by:
readExternalin interfacecom.tangosol.io.pof.PortableObject- Throws:
IOException
-
writeExternal
public void writeExternal(com.tangosol.io.pof.PofWriter out) throws IOException- Specified by:
writeExternalin interfacecom.tangosol.io.pof.PortableObject- Throws:
IOException
-
-