public class H2TestClient extends AsyncRequester
Constructor and Description |
---|
H2TestClient() |
H2TestClient(IOReactorConfig ioReactorConfig,
SSLContext sslContext,
SSLSessionInitializer sslSessionInitializer,
SSLSessionVerifier sslSessionVerifier) |
connect, requestSession
public H2TestClient(IOReactorConfig ioReactorConfig, SSLContext sslContext, SSLSessionInitializer sslSessionInitializer, SSLSessionVerifier sslSessionVerifier) throws IOException
IOException
public H2TestClient() throws IOException
IOException
public 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()
.IOException
public 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
IOException
public IOReactorStatus getStatus()
public void awaitShutdown(TimeValue waitTime) throws InterruptedException
InterruptedException
public void initiateShutdown()
public void shutdown(TimeValue graceTime)
public void close() throws Exception
close
in interface AutoCloseable
Exception
Copyright © 2005–2021 The Apache Software Foundation. All rights reserved.