Moved Session.flush() to ISession: applications do not get any benefit from calling flush().

This commit is contained in:
Simone Bordet 2012-02-29 00:33:22 +01:00
parent 95ffdd8feb
commit ca9b6ebd2c
2 changed files with 7 additions and 7 deletions

View File

@ -26,6 +26,13 @@ import org.eclipse.jetty.spdy.frames.ControlFrame;
public interface ISession extends Session
{
/**
* <p>Initiates the flush of data to the other peer.</p>
* <p>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.</p>
*/
public void flush();
public <C> void control(IStream stream, ControlFrame frame, long timeout, TimeUnit unit, Handler<C> handler, C context);
public <C> void data(IStream stream, DataInfo dataInfo, long timeout, TimeUnit unit, Handler<C> handler, C context);

View File

@ -178,13 +178,6 @@ public interface Session
*/
public void goAway(long timeout, TimeUnit unit, Handler<Void> handler);
/**
* <p>Initiates the flush of data to the other peer.</p>
* <p>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.</p>
*/
public void flush();
/**
* @return the streams currently active in this session
*/