Package com.oracle.coherence.concurrent
Class PermitAcquirer
- java.lang.Object
- 
- com.oracle.coherence.concurrent.PermitAcquirer
 
- 
- All Implemented Interfaces:
- ExternalizableLite,- PortableObject,- Serializable
 
 public class PermitAcquirer extends Object implements ExternalizableLite, 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 SummaryConstructors Constructor Description PermitAcquirer()Default constructor (necessary for the ExternalizableLite interface).PermitAcquirer(Member member, long threadId)ConstructPermitAcquirerinstance.
 - 
Method SummaryAll Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanequals(Object o)UUIDgetMemberId()Return the member UUID.longgetThreadId()Return the thread ID.inthashCode()booleanisClient()Returntrueif this permit acquirer is a remote client (Extend or gRPC).voidreadExternal(PofReader in)Restore the contents of a user type instance by reading its state using the specified PofReader object.voidreadExternal(DataInput in)Restore the contents of this object by loading the object's state from the passed DataInput object.StringtoString()voidwriteExternal(PofWriter out)Save the contents of a POF user type instance by writing its state using the specified PofWriter object.voidwriteExternal(DataOutput out)Save the contents of this object by storing the object's state into the passed DataOutput object.
 
- 
- 
- 
Constructor Detail- 
PermitAcquirerpublic PermitAcquirer() Default constructor (necessary for the ExternalizableLite interface).
 - 
PermitAcquirerpublic PermitAcquirer(Member member, long threadId) ConstructPermitAcquirerinstance.- Parameters:
- member- the member
- threadId- the thread ID
 
 
- 
 - 
Method Detail- 
getMemberIdpublic UUID getMemberId() Return the member UUID.- Returns:
- the member UUID
 
 - 
getThreadIdpublic long getThreadId() Return the thread ID.- Returns:
- the thread ID
 
 - 
isClientpublic 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)
 
 - 
readExternalpublic void readExternal(DataInput in) throws IOException Description copied from interface:ExternalizableLiteRestore the contents of this object by loading the object's state from the passed DataInput object.- Specified by:
- readExternalin interface- ExternalizableLite
- Parameters:
- in- the DataInput stream to read data from in order to restore the state of this object
- Throws:
- IOException- if an I/O exception occurs
- NotActiveException- if the object is not in its initial state, and therefore cannot be deserialized into
 
 - 
writeExternalpublic void writeExternal(DataOutput out) throws IOException Description copied from interface:ExternalizableLiteSave the contents of this object by storing the object's state into the passed DataOutput object.- Specified by:
- writeExternalin interface- ExternalizableLite
- Parameters:
- out- the DataOutput stream to write the state of this object to
- Throws:
- IOException- if an I/O exception occurs
 
 - 
readExternalpublic void readExternal(PofReader in) throws IOException Description copied from interface:PortableObjectRestore the contents of a user type instance by reading its state using the specified PofReader object.- Specified by:
- readExternalin interface- PortableObject
- Parameters:
- in- the PofReader from which to read the object's state
- Throws:
- IOException- if an I/O error occurs
 
 - 
writeExternalpublic void writeExternal(PofWriter out) throws IOException Description copied from interface:PortableObjectSave the contents of a POF user type instance by writing its state using the specified PofWriter object.- Specified by:
- writeExternalin interface- PortableObject
- Parameters:
- out- the PofWriter to which to write the object's state
- Throws:
- IOException- if an I/O error occurs
 
 
- 
 
-