public interface ISession extends Session
Session.Listener, Session.StreamListener
Modifier and Type | Method and Description |
---|---|
void |
control(IStream stream,
ControlFrame frame,
long timeout,
TimeUnit unit,
Callback callback) |
void |
data(IStream stream,
DataInfo dataInfo,
long timeout,
TimeUnit unit,
Callback callback) |
void |
flush()
Initiates the flush of data to the other peer.
|
void |
shutdown()
Gracefully shuts down this session.
|
addListener, getAttribute, getLocalAddress, getRemoteAddress, 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.
void control(IStream stream, ControlFrame frame, long timeout, TimeUnit unit, Callback callback)
void shutdown()
Gracefully shuts down this session.
A special item is queued that will close the connection when it will be dequeued.
Copyright © 1995-2013 Mort Bay Consulting. All Rights Reserved.