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.
| Modifier and Type | Field and Description |
|---|---|
| private final SocketChannel | |
| private final long | |
| private final MessageFactory | |
| private final IMessageReader | |
| private final ISocketProvider | |
| private static final AtomicLong | |
| private final IMessageWriter |
| Access | Constructor and Description |
|---|---|
| public | TransportConnection(MessageFactory _factory, SocketChannel _channel, ISocketProvider _socketProviderImpl, IMessageWriter _writer, IMessageReader _reader)
|
| Modifier and Type | Method and Description |
|---|---|
| public void | close()
Implements java. Closes this stream and releases any system resources associated with it. |
| public SocketChannel | |
| public long | |
| public MessageFactory | |
| public IMessageReader | |
| public ISocketProvider | |
| public IMessageWriter | |
| public String |
| channel | back to summary |
|---|---|
| private final SocketChannel channel | |
| id | back to summary |
|---|---|
| private final long id | |
| messageFactory | back to summary |
|---|---|
| private final MessageFactory messageFactory | |
| reader | back to summary |
|---|---|
| private final IMessageReader reader | |
| socketProviderImpl | back to summary |
|---|---|
| private final ISocketProvider socketProviderImpl | |
| TRANSPORT_ID_GENERATOR | back to summary |
|---|---|
| private static final AtomicLong TRANSPORT_ID_GENERATOR | |
| writer | back to summary |
|---|---|
| private final IMessageWriter writer | |
| TransportConnection | back to summary |
|---|---|
| public TransportConnection(MessageFactory _factory, SocketChannel _channel, ISocketProvider _socketProviderImpl, IMessageWriter _writer, IMessageReader _reader) | |
| close | back to summary |
|---|---|
| public void close() throws IOException Implements java. Doc from java. Closes this stream and releases any system resources associated with it. If the stream is already closed then invoking this method has no effect. As noted in
| |
| getChannel | back to summary |
|---|---|
| public SocketChannel getChannel() | |
| getId | back to summary |
|---|---|
| public long getId() | |
| getMessageFactory | back to summary |
|---|---|
| public MessageFactory getMessageFactory() | |
| getReader | back to summary |
|---|---|
| public IMessageReader getReader() | |
| getSocketProviderImpl | back to summary |
|---|---|
| public ISocketProvider getSocketProviderImpl() | |
| getWriter | back to summary |
|---|---|
| public IMessageWriter getWriter() | |
| toString | back to summary |
|---|---|
| public String toString() Overrides java. Doc from java. Returns a string representation of the object.
Satisfying this method's contract implies a non- | |