Package org.jppf.client.event
Interface ClientConnectionStatusHandler
- All Known Subinterfaces:
JPPFClientConnection
- All Known Implementing Classes:
AbstractChannelWrapperRemote,ChannelWrapperLocal,ChannelWrapperRemoteAsync,JPPFClientConnectionImpl
public interface ClientConnectionStatusHandler
Interface implemented by all classes that desire to handle a connection status
and notify others about status changes.
- Author:
- Laurent Cohen
-
Method Summary
Modifier and TypeMethodDescriptionvoidAdd a connection status listener to this connection's list of listeners.Get the status of this connection.voidRemove a connection status listener from this connection's list of listeners.voidsetStatus(JPPFClientConnectionStatus status) Set the status of this connection.
-
Method Details
-
getStatus
JPPFClientConnectionStatus getStatus()Get the status of this connection.- Returns:
- a
JPPFClientConnectionStatusenumerated value.
-
setStatus
Set the status of this connection.- Parameters:
status- aJPPFClientConnectionStatusenumerated value.
-
addClientConnectionStatusListener
Add a connection status listener to this connection's list of listeners.- Parameters:
listener- the listener to add to the list.
-
removeClientConnectionStatusListener
Remove a connection status listener from this connection's list of listeners.- Parameters:
listener- the listener to remove from the list.
-