Class 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.
    • Field Detail

      • 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
      • zxid

        public long zxid
      • authInfo

        public final java.util.List<org.apache.zookeeper.data.Id> authInfo
      • createTime

        public final long createTime
    • Constructor Detail

      • Request

        public Request​(ServerCnxn cnxn,
                       long sessionId,
                       int xid,
                       int type,
                       java.nio.ByteBuffer bb,
                       java.util.List<org.apache.zookeeper.data.Id> authInfo)
      • Request

        public Request​(long sessionId,
                       int xid,
                       int type,
                       org.apache.zookeeper.txn.TxnHeader hdr,
                       org.apache.jute.Record txn,
                       long zxid)
    • Method Detail

      • isLocalSession

        public boolean isLocalSession()
      • setLocalSession

        public void setLocalSession​(boolean isLocalSession)
      • getOwner

        public java.lang.Object getOwner()
      • setOwner

        public void setOwner​(java.lang.Object owner)
      • getHdr

        public org.apache.zookeeper.txn.TxnHeader getHdr()
      • setHdr

        public void setHdr​(org.apache.zookeeper.txn.TxnHeader hdr)
      • getTxn

        public org.apache.jute.Record getTxn()
      • setTxn

        public void setTxn​(org.apache.jute.Record txn)
      • isQuorum

        public boolean isQuorum()
      • toString

        public java.lang.String toString()
        Overrides:
        toString in class java.lang.Object