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.LockInfoResponse
info_rsp
protected boolean
is_trylock
protected int
lock_id
protected java.lang.String
lock_name
protected Owner
owner
protected Address
sender
protected long
timeout
protected Locking.Type
type
-
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.Type
getType()
Locking.Request
infoRsp(Locking.LockInfoResponse r)
int
lockId()
Locking.Request
lockId(int lock_id)
void
readFrom(java.io.DataInput in)
Read the state of the current object (including superclasses) from instream Note that the input stream must not be closedAddress
sender()
Locking.Request
sender(Address sender)
java.lang.String
toString()
java.lang.String
toStringShort()
void
writeTo(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.IOException
Description copied from interface:Streamable
Write the entire state of the current object (including superclasses) to outstream. Note that the output stream must not be closed- Specified by:
writeTo
in interfaceStreamable
- Throws:
java.io.IOException
-
readFrom
public void readFrom(java.io.DataInput in) throws java.io.IOException, java.lang.ClassNotFoundException
Description copied from interface:Streamable
Read the state of the current object (including superclasses) from instream Note that the input stream must not be closed- Specified by:
readFrom
in interfaceStreamable
- Throws:
java.io.IOException
java.lang.ClassNotFoundException
-
toString
public java.lang.String toString()
- Overrides:
toString
in classjava.lang.Object
-
toStringShort
public java.lang.String toStringShort()
-
-