Package org.freedesktop.dbus.connections
Interface IDisconnectCallback
-
public interface IDisconnectCallbackCallback interface which can be used to get notified about connection losses.- Version:
- 4.1.0 - 2022-02-03
-
-
Method Summary
All Methods Instance Methods Default Methods Modifier and Type Method Description default voidclientDisconnect()Called when a client disconnected (only if this is a server/listening connection).default voiddisconnectOnError(java.io.IOException _ex)Called when the connection is closed due to a connection error (e.g.default voidexceptionOnTerminate(java.io.IOException _ex)Called when the transport throws an exception while connection was already terminating.default voidrequestedDisconnect(java.lang.Integer _connectionId)Called when the disconnect was intended.
-
-
-
Method Detail
-
disconnectOnError
default void disconnectOnError(java.io.IOException _ex)
Called when the connection is closed due to a connection error (e.g. stream closed).- Parameters:
_ex- exception which was thrown by transport
-
requestedDisconnect
default void requestedDisconnect(java.lang.Integer _connectionId)
Called when the disconnect was intended.- Parameters:
_connectionId- connection Id if this was a shared connection, null if last shared or non-shared connection
-
clientDisconnect
default void clientDisconnect()
Called when a client disconnected (only if this is a server/listening connection).
-
exceptionOnTerminate
default void exceptionOnTerminate(java.io.IOException _ex)
Called when the transport throws an exception while connection was already terminating.- Parameters:
_ex- exception which was thrown by transport
-
-