public final class BatchConnectionTest.ConnectionMonitor extends java.lang.Object implements ConnectionListener
Constructor and Description |
---|
ConnectionMonitor()
Create a new
ConnectionMonitor object for monitoring
the given channel. |
Modifier and Type | Method and Description |
---|---|
void |
connectionDropped(Channel channel)
Nothing really to do here - as a precaution we remove ourself from
the channel's set of connection listeners.
|
void |
connectionMade(Channel channel)
The requested connection was made.
|
protected void |
finalize()
Just in case, we remove all the links.
|
public ConnectionMonitor()
ConnectionMonitor
object for monitoring
the given channel. The list of all channels being monitored is all
passed so that the given channel can be removed upon confirmation.protected void finalize() throws java.lang.Throwable
finalize
in class java.lang.Object
java.lang.Throwable
Object.finalize()
public void connectionMade(Channel channel)
The requested connection was made. Consequently,
⋅ We remove ourself from the channel's set of connection listeners
⋅ We remove the channel from the list of open requests
connectionMade
in interface ConnectionListener
channel
- The channel which has been connected.gov.sns.ca.ConnectionListener#connectionMade(gov.sns.ca.Channel)
public void connectionDropped(Channel channel)
connectionDropped
in interface ConnectionListener
channel
- The channel which has been disconnected.gov.sns.ca.ConnectionListener#connectionDropped(gov.sns.ca.Channel)