org.apache.zookeeper.server
Class Request
java.lang.Object
org.apache.zookeeper.server.Request
- Direct Known Subclasses:
- FollowerSyncRequest
public class Request
- extends Object
This is the structure that represents a request moving through a chain of
RequestProcessors. There are various pieces of information that is tacked
onto the request as it is processed.
requestOfDeath
public static final Request requestOfDeath
sessionId
public long sessionId
cxid
public int cxid
type
public int type
request
public ByteBuffer request
cnxn
public ServerCnxn cnxn
hdr
public org.apache.zookeeper.txn.TxnHeader hdr
txn
public Record txn
zxid
public long zxid
authInfo
public List<org.apache.zookeeper.data.Id> authInfo
createTime
public long createTime
Request
public Request(ServerCnxn cnxn,
long sessionId,
int xid,
int type,
ByteBuffer bb,
List<org.apache.zookeeper.data.Id> authInfo)
- Parameters:
cnxn
- sessionId
- xid
- type
- bb
-
getOwner
public Object getOwner()
setOwner
public void setOwner(Object owner)
toString
public String toString()
- Overrides:
toString
in class Object
setException
public void setException(KeeperException e)
getException
public KeeperException getException()