public abstract class AbstractConnection extends Object implements Connection
Constructor and Description |
---|
AbstractConnection(EndPoint endp) |
AbstractConnection(EndPoint endp,
long timestamp) |
Modifier and Type | Method and Description |
---|---|
EndPoint |
getEndPoint() |
long |
getTimeStamp() |
void |
onIdleExpired(long idleForMs)
Called when the connection idle timeout expires
|
String |
toString() |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
handle, isIdle, isSuspended, onClose
protected final EndPoint _endp
public AbstractConnection(EndPoint endp)
public AbstractConnection(EndPoint endp, long timestamp)
public long getTimeStamp()
getTimeStamp
in interface Connection
public EndPoint getEndPoint()
public void onIdleExpired(long idleForMs)
Connection
onIdleExpired
in interface Connection
idleForMs
- how long the connection has been idleConnection.isIdle()
Copyright © 1995-2015 Mort Bay Consulting. All Rights Reserved.