isServer

Indicates whether or not this endpoint is the server-side of the connection.

allowPushTo

void allowPushTo(boolean allow)

This is the SETTINGS_ENABLE_PUSH value sent
from the opposite endpoint. This method should only be called by Netty (not users) as a result of a
receiving a SETTINGS frame.

allowPushTo

boolean allowPushTo()

This is the SETTINGS_ENABLE_PUSH value sent
from the opposite endpoint. The initial value must be true for the client endpoint and always false
for a server endpoint.

numActiveStreams

int numActiveStreams()

Gets the number of active streams (i.e. OPEN or HALF CLOSED) that were created by this
endpoint.

maxActiveStreams

int maxActiveStreams()

Gets the maximum number of streams (created by this endpoint) that are allowed to be active at
the same time. This is the
SETTINGS_MAX_CONCURRENT_STREAMS
value sent from the opposite endpoint to restrict stream creation by this endpoint.

The default value returned by this method must be "unlimited".

maxActiveStreams

void maxActiveStreams(int maxActiveStreams)

Sets the limit for SETTINGS_MAX_CONCURRENT_STREAMS.

Parameters:

maxActiveStreams - The maximum number of streams (created by this endpoint) that are allowed to be
active at once. This is the
SETTINGS_MAX_CONCURRENT_STREAMS value sent
from the opposite endpoint to restrict stream creation by this endpoint.

lastStreamCreated

int lastStreamCreated()

Gets the ID of the stream last successfully created by this endpoint.

lastStreamKnownByPeer

int lastStreamKnownByPeer()

If a GOAWAY was received for this endpoint, this will be the last stream ID from the
GOAWAY frame. Otherwise, this will be -1.