Package com.github.ambry.network
Class RequestInfo
- java.lang.Object
-
- com.github.ambry.network.RequestInfo
-
public class RequestInfo extends java.lang.Object
-
-
Field Summary
Fields Modifier and Type Field Description int
responseFramesCount
-
Constructor Summary
Constructors Constructor Description RequestInfo(java.lang.String host, Port port, SendWithCorrelationId request, ReplicaId replicaId)
Construct a RequestInfo with the given parameters
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.String
getHost()
Port
getPort()
ReplicaId
getReplicaId()
SendWithCorrelationId
getRequest()
long
getStreamHeaderFrameReceiveTime()
long
getStreamSendTime()
void
setStreamHeaderFrameReceiveTime(long streamHeaderFrameReceiveTime)
void
setStreamSendTime(long streamSendTime)
java.lang.String
toString()
-
-
-
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 forport
- the port on the host to which the data is meant forrequest
- the data to be sent.replicaId
- theReplicaId
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.
-
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 classjava.lang.Object
-
-