Top Description Methods
org.freedesktop.dbus.connections

public Interface IDisconnectCallback

Imports
java.io.IOException

Callback interface which can be used to get notified about connection losses.
Author
hypfvieh
Version
4.1.0 - 2022-02-03

Method Summary

Modifier and TypeMethod and Description
public default void
clientDisconnect()

Called when a client disconnected (only if this is a server/listening connection).

public default void
disconnectOnError(IOException
exception which was thrown by transport
_ex
)

Called when the connection is closed due to a connection error (e.g. stream closed).

public default void
exceptionOnTerminate(IOException
exception which was thrown by transport
_ex
)

Called when the transport throws an exception while connection was already terminating.

public default void
requestedDisconnect(Integer
connection Id if this was a shared connection, null if last shared or non-shared connection
_connectionId
)

Called when the disconnect was intended.

Method Detail

clientDisconnectback to summary
public default void clientDisconnect()

Called when a client disconnected (only if this is a server/listening connection).

disconnectOnErrorback to summary
public default void disconnectOnError(IOException _ex)

Called when the connection is closed due to a connection error (e.g. stream closed).

Parameters
_ex:IOException

exception which was thrown by transport

exceptionOnTerminateback to summary
public default void exceptionOnTerminate(IOException _ex)

Called when the transport throws an exception while connection was already terminating.

Parameters
_ex:IOException

exception which was thrown by transport

requestedDisconnectback to summary
public default void requestedDisconnect(Integer _connectionId)

Called when the disconnect was intended.

Parameters
_connectionId:Integer

connection Id if this was a shared connection, null if last shared or non-shared connection