public abstract class AbstractTransport extends Object implements UaTransport
| Constructor and Description |
|---|
AbstractTransport(UaStackClientConfig config) |
| Modifier and Type | Method and Description |
|---|---|
abstract CompletableFuture<io.netty.channel.Channel> |
channel()
Get a
Channel suitable for sending a request on. |
UaStackClientConfig |
getConfig()
Get the
UaStackClientConfig of the UaStackClient this transport instance belongs to. |
CompletableFuture<UaResponseMessage> |
sendRequest(UaRequestMessage request)
Send a
UaRequestMessage, returning a CompletableFuture representing the result of the operation. |
protected CompletableFuture<UaResponseMessage> |
sendRequest(UaRequestMessage request,
io.netty.channel.Channel channel,
boolean firstAttempt) |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitconnect, disconnectpublic AbstractTransport(UaStackClientConfig config)
public UaStackClientConfig getConfig()
UaStackClientConfig of the UaStackClient this transport instance belongs to.UaStackClientConfig of the UaStackClient this transport instance belongs to.public abstract CompletableFuture<io.netty.channel.Channel> channel()
Channel suitable for sending a request on.
The Channel must have a handler capable of matching inbound responses to pending outbound
UaTransportRequests.
Channel suitable for sending a request on.public CompletableFuture<UaResponseMessage> sendRequest(UaRequestMessage request)
UaTransportUaRequestMessage, returning a CompletableFuture representing the result of the operation.sendRequest in interface UaTransportrequest - the UaRequestMessage to send.CompletableFuture representing the result of the operation.protected CompletableFuture<UaResponseMessage> sendRequest(UaRequestMessage request, io.netty.channel.Channel channel, boolean firstAttempt)
Copyright © 2021. All rights reserved.