public static interface Http2Connection.Endpoint<F extends Http2FlowController>
Modifier and Type | Method and Description |
---|---|
boolean |
acceptingNewStreams()
Indicates whether or not this endpoint is currently accepting new streams.
|
boolean |
allowPushTo()
Gets whether or not server push is allowed to this endpoint.
|
void |
allowPushTo(boolean allow)
Sets whether server push is allowed to this endpoint.
|
boolean |
createdStreamId(int streamId)
Indicates whether the given streamId is from the set of IDs used by this endpoint to
create new streams.
|
Http2Stream |
createStream(int streamId)
Creates a stream initiated by this endpoint.
|
F |
flowController()
Gets the flow controller for this endpoint.
|
void |
flowController(F flowController)
Sets the flow controller for this endpoint.
|
boolean |
isServer()
Indicates whether or not this endpoint is the server-side of the connection.
|
int |
lastKnownStream()
Gets the last stream created by this endpoint that is "known" by the opposite endpoint.
|
int |
lastStreamCreated()
Gets the ID of the stream last successfully created by this endpoint.
|
int |
maxStreams()
Gets the maximum number of concurrent streams allowed by this endpoint.
|
void |
maxStreams(int maxStreams)
Sets the maximum number of concurrent streams allowed by this endpoint.
|
int |
nextStreamId()
Returns the next valid streamId for this endpoint.
|
int |
numActiveStreams()
Gets the number of currently active streams that were created by this endpoint.
|
Http2Connection.Endpoint<? extends Http2FlowController> |
opposite()
Gets the
Http2Connection.Endpoint opposite this one. |
Http2Stream |
reservePushStream(int streamId,
Http2Stream parent)
Creates a push stream in the reserved state for this endpoint and notifies all listeners.
|
int nextStreamId()
boolean createdStreamId(int streamId)
boolean acceptingNewStreams()
numActiveStreams()
+ 1 >= maxStreams()
or if the stream IDs
for this endpoint have been exhausted (i.e. nextStreamId()
< 0).Http2Stream createStream(int streamId) throws Http2Exception
The caller is expected to Http2Stream.open(boolean)
the stream.
streamId
- The ID of the streamHttp2Exception
Http2Stream.open(boolean)
Http2Stream reservePushStream(int streamId, Http2Stream parent) throws Http2Exception
streamId
- the ID of the push streamparent
- the parent stream used to initiate the push stream.Http2Exception
boolean isServer()
void allowPushTo(boolean allow)
boolean allowPushTo()
int numActiveStreams()
int maxStreams()
void maxStreams(int maxStreams)
int lastStreamCreated()
int lastKnownStream()
lastStreamCreated()
.F flowController()
void flowController(F flowController)
Http2Connection.Endpoint<? extends Http2FlowController> opposite()
Http2Connection.Endpoint
opposite this one.Copyright © 2008–2015 The Netty Project. All rights reserved.