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 booleanprotected Stringprotected Ownerprotected longprotected Locking.Type -
Constructor Summary
ConstructorsConstructorDescriptionRequest()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 TypeMethodDescriptionvoidRead the state of the current object (including superclasses) from instream Note that the input stream must not be closedtoString()voidwriteTo(DataOutputStream out) Write the entire state of the current object (including superclasses) to outstream.
-
Field Details
-
type
-
lock_name
-
owner
-
timeout
protected long timeout -
is_trylock
protected boolean is_trylock
-
-
Constructor Details
-
Request
public Request() -
Request
-
Request
-
-
Method Details
-
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
public void readFrom(DataInputStream in) throws IOException, IllegalAccessException, InstantiationException 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:
IOExceptionIllegalAccessExceptionInstantiationException
-
toString
-
toStringShort
-