Class NetTestPlugin.Tester.Connection
java.lang.Object
com.biglybt.plugin.net.test.NetTestPlugin.Tester.Connection
- All Implemented Interfaces:
GenericMessageConnection.GenericMessageConnectionPropertyHandler, GenericMessageConnectionListener
- Enclosing class:
NetTestPlugin.Tester
private class NetTestPlugin.Tester.Connection
extends Object
implements GenericMessageConnectionListener, GenericMessageConnection.GenericMessageConnectionPropertyHandler
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate booleanprivate booleanprivate final GenericMessageConnectionprivate longprivate long -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidconnected(GenericMessageConnection connection) voidfailed(GenericMessageConnection connection, Throwable error) private voidgetConnectionProperty(String property_name) voidreceive(GenericMessageConnection connection, PooledByteBuffer message) private voidprivate voidtimerTick(long now)
-
Field Details
-
gmc
-
last_received_time
private long last_received_time -
last_sent_time
private long last_sent_time -
connected
private boolean connected -
failed
private boolean failed
-
-
Constructor Details
-
Connection
- Throws:
Exception
-
Connection
-
-
Method Details
-
connected
- Specified by:
connectedin interfaceGenericMessageConnectionListener
-
timerTick
private void timerTick(long now) -
send
-
receive
public void receive(GenericMessageConnection connection, PooledByteBuffer message) throws MessageException - Specified by:
receivein interfaceGenericMessageConnectionListener- Throws:
MessageException
-
failed
- Specified by:
failedin interfaceGenericMessageConnectionListener- Throws:
MessageException
-
failed
-
getConnectionProperty
- Specified by:
getConnectionPropertyin interfaceGenericMessageConnection.GenericMessageConnectionPropertyHandler
-