public class AdapterHandleDelegate extends AbstractHandle implements SocketHandle
| Constructor and Description |
|---|
AdapterHandleDelegate(HttpRequestAdapter req,
HttpResponseAdapter resp) |
| Modifier and Type | Method and Description |
|---|---|
void |
bind(String address,
int port) |
void |
close() |
void |
connect(String host,
int port,
IOCompletionHandler<Integer> handler) |
InetSocketAddress |
getPeerName() |
InetSocketAddress |
getSockName() |
void |
listen(int backlog,
IOCompletionHandler<AbstractHandle> handler) |
void |
setKeepAlive(boolean nd) |
void |
setNoDelay(boolean nd) |
void |
shutdown(IOCompletionHandler<Integer> handler) |
void |
startReading(IOCompletionHandler<ByteBuffer> handler) |
void |
stopReading() |
getReadHandler, getWritesOutstanding, setReadHandler, write, write, writeHandle, writeHandleclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetReadHandler, getWritesOutstanding, setReadHandler, write, write, writeHandle, writeHandlepublic AdapterHandleDelegate(HttpRequestAdapter req, HttpResponseAdapter resp)
public void close()
close in interface Handleclose in class AbstractHandlepublic void shutdown(IOCompletionHandler<Integer> handler)
shutdown in interface SocketHandlepublic InetSocketAddress getSockName()
getSockName in interface SocketHandlepublic InetSocketAddress getPeerName()
getPeerName in interface SocketHandlepublic void startReading(IOCompletionHandler<ByteBuffer> handler)
startReading in interface HandlestartReading in class AbstractHandlepublic void stopReading()
stopReading in interface HandlestopReading in class AbstractHandlepublic void setNoDelay(boolean nd)
throws OSException
setNoDelay in interface SocketHandleOSExceptionpublic void setKeepAlive(boolean nd)
throws OSException
setKeepAlive in interface SocketHandleOSExceptionpublic void bind(String address, int port) throws OSException
bind in interface SocketHandleOSExceptionpublic void listen(int backlog,
IOCompletionHandler<AbstractHandle> handler)
throws OSException
listen in interface SocketHandleOSExceptionpublic void connect(String host, int port, IOCompletionHandler<Integer> handler) throws OSException
connect in interface SocketHandleOSExceptionCopyright © 2016 Apigee Corporation. All Rights Reserved.