Class RequestInfo


  • public class RequestInfo
    extends java.lang.Object
    A class that consists of a request to be sent over the network in the form of Send, and a destination for it in the form of a host and a Port.
    • Field Detail

      • responseFramesCount

        public int responseFramesCount
    • Constructor Detail

      • RequestInfo

        public RequestInfo​(java.lang.String host,
                           Port port,
                           SendWithCorrelationId request,
                           ReplicaId replicaId)
        Construct a RequestInfo with the given parameters
        Parameters:
        host - the host to which the data is meant for
        port - the port on the host to which the data is meant for
        request - the data to be sent.
        replicaId - the ReplicaId associated with this request
    • Method Detail

      • getHost

        public java.lang.String getHost()
        Returns:
        the host of the destination for the data associated with this object.
      • getPort

        public Port getPort()
        Returns:
        the Port of the destination for the data associated with this object.
      • getRequest

        public SendWithCorrelationId getRequest()
        Returns:
        the request in the form of Send associated with this object.
      • getReplicaId

        public ReplicaId getReplicaId()
        Returns:
        the ReplicaId associated with this request.
      • getStreamHeaderFrameReceiveTime

        public long getStreamHeaderFrameReceiveTime()
      • setStreamHeaderFrameReceiveTime

        public void setStreamHeaderFrameReceiveTime​(long streamHeaderFrameReceiveTime)
      • getStreamSendTime

        public long getStreamSendTime()
      • setStreamSendTime

        public void setStreamSendTime​(long streamSendTime)
      • toString

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