public class RstInfo extends Info
A container for RST_STREAM frames data: the stream id and the stream status.
Constructor and Description |
---|
RstInfo(int streamId,
StreamStatus streamStatus)
Creates a new
RstInfo with the given stream id and stream status |
RstInfo(long timeout,
TimeUnit unit,
int streamId,
StreamStatus streamStatus)
Creates a new
RstInfo with the given stream id and stream status |
Modifier and Type | Method and Description |
---|---|
int |
getStreamId() |
StreamStatus |
getStreamStatus() |
String |
toString() |
getTimeout, getUnit
public RstInfo(long timeout, TimeUnit unit, int streamId, StreamStatus streamStatus)
Creates a new RstInfo
with the given stream id and stream status
timeout
- the operation's timeoutunit
- the timeout's unitstreamId
- the stream idstreamStatus
- the stream statuspublic RstInfo(int streamId, StreamStatus streamStatus)
Creates a new RstInfo
with the given stream id and stream status
streamId
- streamStatus
- public int getStreamId()
public StreamStatus getStreamStatus()
Copyright © 1995-2015 Webtide. All Rights Reserved.