Class TransportConnection
java.lang.Object
org.freedesktop.dbus.connections.transports.TransportConnection
- All Implemented Interfaces:
Closeable,AutoCloseable
Represents one transport connection of any type.
A transport connection is bound to a SocketChannel which might be a connection to a DBusServer when used as client or a connection from a client when running as server.
- Since:
- v4.2.2 - 2023-02-02
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final SocketChannelprivate final longprivate final IMessageReaderprivate static final AtomicLongprivate final IMessageWriter -
Constructor Summary
ConstructorsConstructorDescriptionTransportConnection(SocketChannel _channel, IMessageWriter _writer, IMessageReader _reader) -
Method Summary
-
Field Details
-
TRANSPORT_ID_GENERATOR
-
id
private final long id -
channel
-
writer
-
reader
-
-
Constructor Details
-
TransportConnection
-
-
Method Details
-
getChannel
-
getWriter
-
getReader
-
getId
public long getId() -
toString
-
close
- Specified by:
closein interfaceAutoCloseable- Specified by:
closein interfaceCloseable- Throws:
IOException
-