protected class SocketConnector.ConnectorEndPoint extends SocketEndPoint implements Runnable, ConnectedEndPoint
| Constructor and Description |
|---|
SocketConnector.ConnectorEndPoint(Socket socket) |
| Modifier and Type | Method and Description |
|---|---|
void |
close()
Close any backing stream associated with the endpoint
|
void |
dispatch() |
int |
fill(Buffer buffer)
Fill the buffer from the current putIndex to it's capacity from whatever
byte source is backing the buffer.
|
Connection |
getConnection() |
void |
run() |
void |
setConnection(Connection connection) |
getLocalAddr, getLocalHost, getLocalPort, getRemoteAddr, getRemoteHost, getRemotePort, getTransport, idleExpired, isInputShutdown, isOpen, isOutputShutdown, setMaxIdleTime, shutdownInput, shutdownOutput, shutdownSocketInput, shutdownSocketOutput, toStringblockReadable, blockWritable, flush, flush, flush, getInputStream, getMaxIdleTime, getOutputStream, isBlocking, isClosed, setInputStream, setOutputStreamclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitblockReadable, blockWritable, flush, flush, flush, getLocalAddr, getLocalHost, getLocalPort, getMaxIdleTime, getRemoteAddr, getRemoteHost, getRemotePort, getTransport, isBlocking, isInputShutdown, isOpen, isOutputShutdown, setMaxIdleTime, shutdownInput, shutdownOutputprotected final Socket _socket
public SocketConnector.ConnectorEndPoint(Socket socket) throws IOException
IOExceptionpublic Connection getConnection()
getConnection in interface ConnectedEndPointpublic void setConnection(Connection connection)
setConnection in interface ConnectedEndPointpublic void dispatch()
throws IOException
IOExceptionpublic int fill(Buffer buffer) throws IOException
EndPointfill in interface EndPointfill in class StreamEndPointint value indicating the number of bytes
filled or -1 if EOF is reached.EofException - If input is shutdown or the endpoint is closed.IOExceptionpublic void close()
throws IOException
EndPointclose in interface EndPointclose in class SocketEndPointIOExceptionCopyright © 1995-2015 Mort Bay Consulting. All Rights Reserved.