@Test(expected = Http2Exception.class) public void createShouldThrowWhenMaxAllowedStreamsOpenExceeded() throws Http2Exception { server.local().maxActiveStreams(0); server.local().createStream(2, true); }
@Override public Endpoint<Http2LocalFlowController> local() { return localEndpoint; }
DefaultHttp2Connection implements Http2Connection { @Override public Endpoint<Http2LocalFlowController> local() { return localEndpoint; } }
DefaultHttp2Connection implements Http2Connection { @Override public Endpoint<Http2LocalFlowController> local() { return localEndpoint; } DefaultHttp2Connection(boolean server);  DefaultHttp2Connection(boolean server, int maxReservedStreams); }
DefaultHttp2Connection implements Http2Connection { @Override public Endpoint<Http2LocalFlowController> local() { return localEndpoint; } DefaultHttp2Connection(boolean server);  DefaultHttp2Connection(boolean server, int maxReservedStreams); @Override Future<Void> close(final Promise<Void> promise); @Override void addListener(Listener listener); @Override void removeListener(Listener listener); @Override boolean isServer(); @Override Http2Stream connectionStream(); @Override Http2Stream stream(int streamId); @Override boolean streamMayHaveExisted(int streamId); @Override int numActiveStreams(); @Override Http2Stream forEachActiveStream(Http2StreamVisitor visitor); @Override Endpoint<Http2LocalFlowController> local(); @Override Endpoint<Http2RemoteFlowController> remote(); @Override boolean goAwayReceived(); @Override void goAwayReceived(final int lastKnownStream, long errorCode, ByteBuf debugData); @Override boolean goAwaySent(); @Override void goAwaySent(final int lastKnownStream, long errorCode, ByteBuf debugData); @Override PropertyKey newKey(); }
DefaultHttp2Connection implements Http2Connection { @Override public Endpoint<Http2LocalFlowController> local() { return localEndpoint; } DefaultHttp2Connection(boolean server);  DefaultHttp2Connection(boolean server, int maxReservedStreams); @Override Future<Void> close(final Promise<Void> promise); @Override void addListener(Listener listener); @Override void removeListener(Listener listener); @Override boolean isServer(); @Override Http2Stream connectionStream(); @Override Http2Stream stream(int streamId); @Override boolean streamMayHaveExisted(int streamId); @Override int numActiveStreams(); @Override Http2Stream forEachActiveStream(Http2StreamVisitor visitor); @Override Endpoint<Http2LocalFlowController> local(); @Override Endpoint<Http2RemoteFlowController> remote(); @Override boolean goAwayReceived(); @Override void goAwayReceived(final int lastKnownStream, long errorCode, ByteBuf debugData); @Override boolean goAwaySent(); @Override void goAwaySent(final int lastKnownStream, long errorCode, ByteBuf debugData); @Override PropertyKey newKey();  }