|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.echomine.net.Connection
com.echomine.net.TimeableConnection
public class TimeableConnection
Adds a feature that will record the amount of time since the connection is online. This time is started when established event is fired, and stops when closed event is fired. This class simply utilizes the available features in ConnectionModel
Field Summary |
---|
Fields inherited from class com.echomine.net.Connection |
---|
listenerList |
Constructor Summary | |
---|---|
TimeableConnection()
|
Method Summary | |
---|---|
protected void |
fireConnectionClosed(ConnectionEvent event)
|
protected void |
fireConnectionEstablished(ConnectionEvent event)
|
Methods inherited from class com.echomine.net.Connection |
---|
addConnectionListener, fireConnectionStarting, fireConnectionStartingWithoutVeto, removeConnectionListener |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public TimeableConnection()
Method Detail |
---|
protected void fireConnectionEstablished(ConnectionEvent event)
fireConnectionEstablished
in class Connection
protected void fireConnectionClosed(ConnectionEvent event)
fireConnectionClosed
in class Connection
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |