Mercurial Hosting > luan
diff src/org/eclipse/jetty/io/Connection.java @ 972:5ee36654b383
simplify AbstractHttpConnection
author | Franklin Schmidt <fschmidt@gmail.com> |
---|---|
date | Sat, 15 Oct 2016 22:42:05 -0600 |
parents | 866f2e801618 |
children | 4d9fe9cc554d |
line wrap: on
line diff
--- a/src/org/eclipse/jetty/io/Connection.java Fri Oct 14 13:06:06 2016 -0600 +++ b/src/org/eclipse/jetty/io/Connection.java Sat Oct 15 22:42:05 2016 -0600 @@ -34,37 +34,28 @@ */ public interface Connection { - /* ------------------------------------------------------------ */ - /** - * Handle the connection. - * @throws IOException if the handling of I/O operations fail - */ - void handle() throws IOException; + /* ------------------------------------------------------------ */ + /** + * Handle the connection. + * @throws IOException if the handling of I/O operations fail + */ + void handle() throws IOException; - /** - * @return the timestamp at which the connection was created - */ - long getTimeStamp(); + /** + * @return the timestamp at which the connection was created + */ + long getTimeStamp(); - /** - * @return whether this connection is idle, that is not parsing and not generating - * @see #onIdleExpired(long) - */ - boolean isIdle(); + /** + * @return whether this connection is idle, that is not parsing and not generating + * @see #onIdleExpired(long) + */ + boolean isIdle(); - /** - * <p>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 <code>isReadInterested()</code>.</p> - * - * @return true to indicate interest in further reads, false otherwise - */ - // TODO: rename to isReadInterested() in the next release - boolean isSuspended(); - - /** - * Called when the connection idle timeout expires - * @param idleForMs how long the connection has been idle - * @see #isIdle() - */ - void onIdleExpired(long idleForMs); + /** + * Called when the connection idle timeout expires + * @param idleForMs how long the connection has been idle + * @see #isIdle() + */ + void onIdleExpired(long idleForMs); }