public class ChildServerHandle extends AbstractHandle implements SocketHandle
| Constructor and Description |
|---|
ChildServerHandle(NIOSocketHandle parent,
GenericNodeRuntime runtime) |
| Modifier and Type | Method and Description |
|---|---|
void |
bind(java.lang.String address,
int port) |
void |
close() |
void |
connect(java.lang.String host,
int port,
IOCompletionHandler<java.lang.Integer> handler) |
java.net.InetSocketAddress |
getPeerName() |
java.net.InetSocketAddress |
getSockName() |
void |
listen(int backlog,
IOCompletionHandler<AbstractHandle> handler) |
void |
serverSelected(java.nio.channels.SocketChannel newChannel)
This is called by the parent after a new channel is accepted.
|
void |
setKeepAlive(boolean nd) |
void |
setNoDelay(boolean nd) |
void |
shutdown(IOCompletionHandler<java.lang.Integer> handler) |
getReadHandler, getWritesOutstanding, setReadHandler, startReading, stopReading, write, write, writeHandle, writeHandleclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetReadHandler, getWritesOutstanding, setReadHandler, startReading, stopReading, write, write, writeHandle, writeHandlepublic ChildServerHandle(NIOSocketHandle parent, GenericNodeRuntime runtime)
public void serverSelected(java.nio.channels.SocketChannel newChannel)
public void close()
close in interface Handleclose in class AbstractHandlepublic void bind(java.lang.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(java.lang.String host,
int port,
IOCompletionHandler<java.lang.Integer> handler)
throws OSException
connect in interface SocketHandleOSExceptionpublic void shutdown(IOCompletionHandler<java.lang.Integer> handler)
shutdown in interface SocketHandlepublic java.net.InetSocketAddress getSockName()
getSockName in interface SocketHandlepublic java.net.InetSocketAddress getPeerName()
getPeerName in interface SocketHandlepublic void setNoDelay(boolean nd)
throws OSException
setNoDelay in interface SocketHandleOSExceptionpublic void setKeepAlive(boolean nd)
throws OSException
setKeepAlive in interface SocketHandleOSExceptionCopyright © 2018 Apigee Corporation. All Rights Reserved.