@Contract(threading=SAFE) public abstract class AsyncConnectionEndpoint extends Object implements ModalCloseable
| Constructor and Description | 
|---|
| AsyncConnectionEndpoint() | 
| Modifier and Type | Method and Description | 
|---|---|
| void | close() | 
| abstract void | execute(String id,
       AsyncClientExchangeHandler exchangeHandler,
       HandlerFactory<AsyncPushConsumer> pushHandlerFactory,
       HttpContext context)Initiates a message exchange using the given handler. | 
| void | execute(String id,
       AsyncClientExchangeHandler exchangeHandler,
       HttpContext context)Initiates a message exchange using the given handler. | 
| <T> Future<T> | execute(String id,
       AsyncRequestProducer requestProducer,
       AsyncResponseConsumer<T> responseConsumer,
       FutureCallback<T> callback)Initiates message exchange using the given request producer and response consumer. | 
| <T> Future<T> | execute(String id,
       AsyncRequestProducer requestProducer,
       AsyncResponseConsumer<T> responseConsumer,
       HandlerFactory<AsyncPushConsumer> pushHandlerFactory,
       FutureCallback<T> callback)Initiates message exchange using the given request producer and response consumer. | 
| <T> Future<T> | execute(String id,
       AsyncRequestProducer requestProducer,
       AsyncResponseConsumer<T> responseConsumer,
       HandlerFactory<AsyncPushConsumer> pushHandlerFactory,
       HttpContext context,
       FutureCallback<T> callback)Initiates message exchange using the given request producer and response consumer. | 
| <T> Future<T> | execute(String id,
       AsyncRequestProducer requestProducer,
       AsyncResponseConsumer<T> responseConsumer,
       HttpContext context,
       FutureCallback<T> callback)Initiates message exchange using the given request producer and response consumer. | 
| abstract boolean | isConnected()Determines if the connection to the remote endpoint is still open and valid. | 
| abstract void | setSocketTimeout(Timeout timeout)Sets socket timeout. | 
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitclosepublic abstract void execute(String id, AsyncClientExchangeHandler exchangeHandler, HandlerFactory<AsyncPushConsumer> pushHandlerFactory, HttpContext context)
id - unique operation ID or null.exchangeHandler - the message exchange handler.pushHandlerFactory - the push handler factory.context - the execution context.public abstract boolean isConnected()
public abstract void setSocketTimeout(Timeout timeout)
timeout - the socket timeout.public final void close()
                 throws IOException
close in interface Closeableclose in interface AutoCloseableIOExceptionpublic void execute(String id, AsyncClientExchangeHandler exchangeHandler, HttpContext context)
id - unique operation ID or null.exchangeHandler - the message exchange handler.context - the execution context.public final <T> Future<T> execute(String id, AsyncRequestProducer requestProducer, AsyncResponseConsumer<T> responseConsumer, HandlerFactory<AsyncPushConsumer> pushHandlerFactory, HttpContext context, FutureCallback<T> callback)
T - the result representation.id - unique operation ID or null.requestProducer - the request producer.responseConsumer - the response consumer.pushHandlerFactory - the push handler factory.context - the execution context.callback - the result callback.public final <T> Future<T> execute(String id, AsyncRequestProducer requestProducer, AsyncResponseConsumer<T> responseConsumer, HttpContext context, FutureCallback<T> callback)
T - the result representation.id - unique operation ID or null.requestProducer - the request producer.responseConsumer - the response consumer.context - the execution context.callback - the result callback.public final <T> Future<T> execute(String id, AsyncRequestProducer requestProducer, AsyncResponseConsumer<T> responseConsumer, HandlerFactory<AsyncPushConsumer> pushHandlerFactory, FutureCallback<T> callback)
T - the result representation.id - unique operation ID or null.requestProducer - the request producer.responseConsumer - the response consumer.pushHandlerFactory - the push handler factory.callback - the result callback.public final <T> Future<T> execute(String id, AsyncRequestProducer requestProducer, AsyncResponseConsumer<T> responseConsumer, FutureCallback<T> callback)
T - the result representation.id - unique operation ID or null.requestProducer - the request producer.responseConsumer - the response consumer.callback - the result callback.Copyright © 1999–2021 The Apache Software Foundation. All rights reserved.