comparison src/org/eclipse/jetty/io/Connection.java @ 973:4d9fe9cc554d

simplify AbstractConnection
author Franklin Schmidt <fschmidt@gmail.com>
date Sat, 15 Oct 2016 23:03:00 -0600
parents 5ee36654b383
children 7422ca1ae146
comparison
equal deleted inserted replaced
972:5ee36654b383 973:4d9fe9cc554d
40 * @throws IOException if the handling of I/O operations fail 40 * @throws IOException if the handling of I/O operations fail
41 */ 41 */
42 void handle() throws IOException; 42 void handle() throws IOException;
43 43
44 /** 44 /**
45 * @return the timestamp at which the connection was created
46 */
47 long getTimeStamp();
48
49 /**
50 * @return whether this connection is idle, that is not parsing and not generating 45 * @return whether this connection is idle, that is not parsing and not generating
51 * @see #onIdleExpired(long) 46 * @see #onIdleExpired(long)
52 */ 47 */
53 boolean isIdle(); 48 boolean isIdle();
54
55 /**
56 * Called when the connection idle timeout expires
57 * @param idleForMs how long the connection has been idle
58 * @see #isIdle()
59 */
60 void onIdleExpired(long idleForMs);
61 } 49 }