public class H2TestClient extends AsyncRequester
| Constructor and Description |
|---|
H2TestClient() |
H2TestClient(IOReactorConfig ioReactorConfig,
SSLContext sslContext,
SSLSessionInitializer sslSessionInitializer,
SSLSessionVerifier sslSessionVerifier) |
connect, requestSessionpublic H2TestClient(IOReactorConfig ioReactorConfig, SSLContext sslContext, SSLSessionInitializer sslSessionInitializer, SSLSessionVerifier sslSessionVerifier) throws IOException
IOExceptionpublic H2TestClient()
throws IOException
IOExceptionpublic void register(String uriPattern, Supplier<AsyncPushConsumer> supplier)
public void configure(H2Config h2Config)
public void configure(Http1Config http1Config)
public void configure(HttpProcessor httpProcessor)
public void start(IOEventHandlerFactory handlerFactory) throws IOException
IOException@Deprecated public void start(HttpProcessor httpProcessor, H2Config h2Config) throws IOException
configure(H2Config), configure(HttpProcessor), start().IOException@Deprecated public void start(HttpProcessor httpProcessor, Http1Config http1Config) throws IOException
configure(Http1Config), configure(HttpProcessor), start().IOException@Deprecated public void start(H2Config h2Config) throws IOException
configure(H2Config), start().IOException@Deprecated public void start(Http1Config http1Config) throws IOException
configure(Http1Config), start().IOExceptionpublic Future<ClientSessionEndpoint> connect(HttpHost host, Timeout timeout, FutureCallback<ClientSessionEndpoint> callback)
public Future<ClientSessionEndpoint> connect(HttpHost host, Timeout timeout)
public Future<ClientSessionEndpoint> connect(String hostname, int port, Timeout timeout)
protected void execute(IOEventHandlerFactory ioEventHandlerFactory) throws IOException
IOExceptionpublic IOReactorStatus getStatus()
public void awaitShutdown(TimeValue waitTime) throws InterruptedException
InterruptedExceptionpublic void initiateShutdown()
public void shutdown(TimeValue graceTime)
public void close()
throws Exception
close in interface AutoCloseableExceptionCopyright © 2005–2021 The Apache Software Foundation. All rights reserved.