public class SPDYConnection extends AbstractConnection implements Controller, IdleListener
AbstractConnection.FillingInterestedCallback, AbstractConnection.NestedState, AbstractConnection.StateConnection.ListenerEXECUTE_ONFILLABLE, FILL_INTERESTED, FILLING, FILLING_FILL_INTERESTED, IDLE, REFILLING| Constructor and Description |
|---|
SPDYConnection(EndPoint endPoint,
ByteBufferPool bufferPool,
Parser parser,
Executor executor,
boolean dispatchIO) |
SPDYConnection(EndPoint endPoint,
ByteBufferPool bufferPool,
Parser parser,
Executor executor,
boolean dispatchIO,
int bufferSize) |
| Modifier and Type | Method and Description |
|---|---|
void |
close()
Performs a logical close of this connection.
|
void |
close(boolean onlyOutput) |
protected ISession |
getSession() |
protected void |
goAway(ISession session) |
void |
onFillable()
Callback method invoked when the endpoint is ready to be read.
|
void |
onIdle(boolean idle) |
void |
onOpen()
Callback method invoked when this
Connection is opened. |
protected boolean |
onReadTimeout()
Callback method invoked when the endpoint failed to be ready to be read after a timeout
|
protected int |
read(ByteBuffer buffer) |
void |
setSession(ISession session) |
void |
write(Callback callback,
ByteBuffer... buffers) |
addListener, failedCallback, fillInterested, fillInterested, getBytesIn, getBytesOut, getCreatedTimeStamp, getEndPoint, getExecutor, getInputBufferSize, getMessagesIn, getMessagesOut, next, onClose, onFillInterestedFailed, setInputBufferSize, toStringpublic SPDYConnection(EndPoint endPoint, ByteBufferPool bufferPool, Parser parser, Executor executor, boolean dispatchIO)
public SPDYConnection(EndPoint endPoint, ByteBufferPool bufferPool, Parser parser, Executor executor, boolean dispatchIO, int bufferSize)
public void onOpen()
ConnectionCallback method invoked when this Connection is opened.
Creators of the connection implementation are responsible for calling this method.
onOpen in interface ConnectiononOpen in class AbstractConnectionpublic void onFillable()
AbstractConnectionCallback method invoked when the endpoint is ready to be read.
onFillable in class AbstractConnectionAbstractConnection.fillInterested()protected int read(ByteBuffer buffer)
public void write(Callback callback, ByteBuffer... buffers)
write in interface Controllerpublic void close()
ConnectionPerforms a logical close of this connection.
For simple connections, this may just mean to delegate the close to the associated
EndPoint but, for example, SSL connections should write the SSL close message
before closing the associated EndPoint.
close in interface Closeableclose in interface AutoCloseableclose in interface Connectionclose in class AbstractConnectionpublic void close(boolean onlyOutput)
close in interface Controllerpublic void onIdle(boolean idle)
onIdle in interface IdleListenerprotected boolean onReadTimeout()
AbstractConnectionCallback method invoked when the endpoint failed to be ready to be read after a timeout
onReadTimeout in class AbstractConnectionprotected void goAway(ISession session)
protected ISession getSession()
public void setSession(ISession session)
Copyright © 1995-2015 Webtide. All Rights Reserved.