Package org.jgroups.protocols
Class Locking.Request
java.lang.Object
org.jgroups.protocols.Locking.Request
- All Implemented Interfaces:
Streamable
- Enclosing class:
Locking
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected Locking.LockInfoResponseprotected booleanprotected intprotected Stringprotected Ownerprotected Addressprotected longprotected Locking.Type -
Constructor Summary
ConstructorsConstructorDescriptionRequest()Request(Locking.Type type) Request(Locking.Type type, String lock_name, Owner owner, long timeout) Request(Locking.Type type, String lock_name, Owner owner, long timeout, boolean is_trylock) -
Method Summary
Modifier and TypeMethodDescriptiongetType()intlockId()lockId(int lock_id) voidRead the state of the current object (including superclasses) from instream Note that the input stream must not be closedsender()toString()voidwriteTo(DataOutput out) Write the entire state of the current object (including superclasses) to outstream.
-
Field Details
-
type
-
lock_name
-
lock_id
protected int lock_id -
owner
-
timeout
protected long timeout -
is_trylock
protected boolean is_trylock -
info_rsp
-
sender
-
-
Constructor Details
-
Request
public Request() -
Request
-
Request
-
Request
-
-
Method Details
-
getType
-
lockId
-
lockId
public int lockId() -
infoRsp
-
sender
-
sender
-
writeTo
Description copied from interface:StreamableWrite the entire state of the current object (including superclasses) to outstream. Note that the output stream must not be closed- Specified by:
writeToin interfaceStreamable- Throws:
IOException
-
readFrom
Description copied from interface:StreamableRead the state of the current object (including superclasses) from instream Note that the input stream must not be closed- Specified by:
readFromin interfaceStreamable- Throws:
IOExceptionClassNotFoundException
-
toString
-
toStringShort
-