Package org.jgroups.protocols
Class Locking.Request
- java.lang.Object
-
- org.jgroups.protocols.Locking.Request
-
- All Implemented Interfaces:
Streamable
- Enclosing class:
- Locking
public static class Locking.Request extends java.lang.Object implements Streamable
-
-
Field Summary
Fields Modifier and Type Field Description protected Locking.LockInfoResponseinfo_rspprotected booleanis_trylockprotected intlock_idprotected java.lang.Stringlock_nameprotected Ownerownerprotected Addresssenderprotected longtimeoutprotected Locking.Typetype
-
Constructor Summary
Constructors Constructor Description Request()Request(Locking.Type type)Request(Locking.Type type, java.lang.String lock_name, Owner owner, long timeout)Request(Locking.Type type, java.lang.String lock_name, Owner owner, long timeout, boolean is_trylock)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Locking.TypegetType()Locking.RequestinfoRsp(Locking.LockInfoResponse r)intlockId()Locking.RequestlockId(int lock_id)voidreadFrom(java.io.DataInput in)Read the state of the current object (including superclasses) from instream Note that the input stream must not be closedAddresssender()Locking.Requestsender(Address sender)java.lang.StringtoString()java.lang.StringtoStringShort()voidwriteTo(java.io.DataOutput out)Write the entire state of the current object (including superclasses) to outstream.
-
-
-
Field Detail
-
type
protected Locking.Type type
-
lock_name
protected java.lang.String lock_name
-
lock_id
protected int lock_id
-
owner
protected Owner owner
-
timeout
protected long timeout
-
is_trylock
protected boolean is_trylock
-
info_rsp
protected Locking.LockInfoResponse info_rsp
-
sender
protected Address sender
-
-
Constructor Detail
-
Request
public Request()
-
Request
public Request(Locking.Type type)
-
Request
public Request(Locking.Type type, java.lang.String lock_name, Owner owner, long timeout)
-
Request
public Request(Locking.Type type, java.lang.String lock_name, Owner owner, long timeout, boolean is_trylock)
-
-
Method Detail
-
getType
public Locking.Type getType()
-
lockId
public Locking.Request lockId(int lock_id)
-
lockId
public int lockId()
-
infoRsp
public Locking.Request infoRsp(Locking.LockInfoResponse r)
-
sender
public Address sender()
-
sender
public Locking.Request sender(Address sender)
-
writeTo
public void writeTo(java.io.DataOutput out) throws java.io.IOExceptionDescription 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:
java.io.IOException
-
readFrom
public void readFrom(java.io.DataInput in) throws java.io.IOException, java.lang.ClassNotFoundExceptionDescription 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:
java.io.IOExceptionjava.lang.ClassNotFoundException
-
toString
public java.lang.String toString()
- Overrides:
toStringin classjava.lang.Object
-
toStringShort
public java.lang.String toStringShort()
-
-