org.apache.zookeeper.server
Class Request
java.lang.Object
org.apache.zookeeper.server.Request
- Direct Known Subclasses:
- LearnerSyncRequest
public class Request
- extends java.lang.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.
Constructor Summary |
Request(ServerCnxn cnxn,
long sessionId,
int xid,
int type,
java.nio.ByteBuffer bb,
java.util.List<Id> authInfo)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
requestOfDeath
public static final Request requestOfDeath
sessionId
public final long sessionId
cxid
public final int cxid
type
public final int type
request
public final java.nio.ByteBuffer request
cnxn
public final ServerCnxn cnxn
hdr
public TxnHeader hdr
txn
public org.apache.jute.Record txn
zxid
public long zxid
authInfo
public final java.util.List<Id> authInfo
createTime
public final long createTime
Request
public Request(ServerCnxn cnxn,
long sessionId,
int xid,
int type,
java.nio.ByteBuffer bb,
java.util.List<Id> authInfo)
- Parameters:
cnxn
- sessionId
- xid
- type
- bb
-
getOwner
public java.lang.Object getOwner()
setOwner
public void setOwner(java.lang.Object owner)
toString
public java.lang.String toString()
- Overrides:
toString
in class java.lang.Object
setException
public void setException(KeeperException e)
getException
public KeeperException getException()
Copyright © 2012 The Apache Software Foundation