public interface ISession extends Session
Session.Listener, Session.StreamListener
Modifier and Type | Method and Description |
---|---|
<C> void |
control(IStream stream,
ControlFrame frame,
long timeout,
TimeUnit unit,
Callback<C> callback,
C context) |
<C> void |
data(IStream stream,
DataInfo dataInfo,
long timeout,
TimeUnit unit,
Callback<C> callback,
C context) |
void |
flush()
Initiates the flush of data to the other peer.
|
void |
shutdown()
Gracefully shuts down this session.
|
addListener, getAttribute, getStream, getStreams, getVersion, goAway, goAway, ping, ping, removeAttribute, removeListener, rst, rst, setAttribute, settings, settings, syn, syn
void flush()
Initiates the flush of data to the other peer.
Note that the flush may do nothing if, for example, there is nothing to flush, or if the data to be flushed belong to streams that have their flow-control stalled.
<C> void control(IStream stream, ControlFrame frame, long timeout, TimeUnit unit, Callback<C> callback, C context)
<C> void data(IStream stream, DataInfo dataInfo, long timeout, TimeUnit unit, Callback<C> callback, C context)
void shutdown()
Gracefully shuts down this session.
A special item is queued that will close the connection when it will be dequeued.
Copyright © 1995-2012 Mort Bay Consulting. All Rights Reserved.