org.granite.client.messaging.transport.apache
Class ApacheAsyncTransport
java.lang.Object
org.granite.client.messaging.transport.AbstractTransport<Object>
org.granite.client.messaging.transport.apache.ApacheAsyncTransport
- All Implemented Interfaces:
- HTTPTransport, Transport
public class ApacheAsyncTransport
- extends AbstractTransport<Object>
- implements HTTPTransport
- Author:
- Franck WOLFF
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ApacheAsyncTransport
public ApacheAsyncTransport()
configure
public void configure(org.apache.http.impl.nio.client.HttpAsyncClientBuilder clientBuilder)
getDefaultRequestConfig
public org.apache.http.client.config.RequestConfig getDefaultRequestConfig()
setDefaultRequestConfig
public void setDefaultRequestConfig(org.apache.http.client.config.RequestConfig defaultRequestConfig)
getCloseableHttpAsyncClient
protected org.apache.http.impl.nio.client.CloseableHttpAsyncClient getCloseableHttpAsyncClient()
start
public boolean start()
- Specified by:
start in interface Transport
isStarted
public boolean isStarted()
- Specified by:
isStarted in interface Transport
send
public TransportFuture send(Channel channel,
TransportMessage message)
throws TransportException
- Specified by:
send in interface Transport
- Throws:
TransportException
poll
public void poll(Channel channel,
TransportMessage message)
throws TransportException
- Specified by:
poll in interface Transport
- Throws:
TransportException
stop
public void stop()
- Specified by:
stop in interface Transport- Overrides:
stop in class AbstractTransport<Object>