public class SPDYAsyncConnection extends AbstractConnection implements AsyncConnection, Controller<StandardSession.FrameBytes>, IdleListener
_endp| Constructor and Description |
|---|
SPDYAsyncConnection(AsyncEndPoint endPoint,
ByteBufferPool bufferPool,
Parser parser) |
| Modifier and Type | Method and Description |
|---|---|
void |
close(boolean onlyOutput) |
int |
fill() |
int |
flush() |
AsyncEndPoint |
getEndPoint() |
protected Session |
getSession() |
Connection |
handle()
Handle the connection.
|
boolean |
isIdle() |
boolean |
isSuspended()
The semantic of this method is to return true to indicate interest in further reads,
or false otherwise, but it is misnamed and should be really called
isReadInterested(). |
void |
onClose()
Called after the connection is closed
|
void |
onIdle(boolean idle) |
void |
onIdleExpired(long idleForMs)
Called when the connection idle timeout expires
|
void |
onInputShutdown() |
protected void |
setSession(Session session) |
int |
write(ByteBuffer buffer,
Handler<StandardSession.FrameBytes> handler,
StandardSession.FrameBytes context) |
getTimeStamp, toStringclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitgetTimeStamppublic SPDYAsyncConnection(AsyncEndPoint endPoint, ByteBufferPool bufferPool, Parser parser)
public Connection handle() throws IOException
Connectionhandle in interface ConnectionIOException - if the handling of I/O operations failpublic int fill()
throws IOException
IOExceptionpublic int flush()
public int write(ByteBuffer buffer, Handler<StandardSession.FrameBytes> handler, StandardSession.FrameBytes context)
write in interface Controller<StandardSession.FrameBytes>public void close(boolean onlyOutput)
close in interface Controller<StandardSession.FrameBytes>public void onIdle(boolean idle)
onIdle in interface IdleListenerpublic AsyncEndPoint getEndPoint()
getEndPoint in class AbstractConnectionpublic boolean isIdle()
isIdle in interface ConnectionConnection.onIdleExpired(long)public boolean isSuspended()
ConnectionThe semantic of this method is to return true to indicate interest in further reads,
or false otherwise, but it is misnamed and should be really called isReadInterested().
isSuspended in interface Connectionpublic void onClose()
ConnectiononClose in interface Connectionpublic void onInputShutdown()
throws IOException
onInputShutdown in interface AsyncConnectionIOExceptionpublic void onIdleExpired(long idleForMs)
ConnectiononIdleExpired in interface ConnectiononIdleExpired in class AbstractConnectionidleForMs - how long the connection has been idleConnection.isIdle()protected Session getSession()
protected void setSession(Session session)
Copyright © 1995-2012 Mort Bay Consulting. All Rights Reserved.