public class OpcHttpTransport extends AbstractTransport
| Constructor and Description |
|---|
OpcHttpTransport(UaStackClient client) |
| Modifier and Type | Method and Description |
|---|---|
CompletableFuture<io.netty.channel.Channel> |
channel()
Get a
Channel suitable for sending a request on. |
CompletableFuture<UaTransport> |
connect()
Connect this transport.
|
CompletableFuture<UaTransport> |
disconnect()
Disconnect this transport.
|
CompletableFuture<UaResponseMessage> |
sendRequest(UaRequestMessage request)
Send a
UaRequestMessage, returning a CompletableFuture representing the result of the operation. |
getConfig, sendRequestpublic OpcHttpTransport(UaStackClient client)
public CompletableFuture<UaTransport> connect()
UaTransportSome transports may actually be connection-less (e.g. HTTP), making this method a misnomer, but it should be called to initialize the transport regardless.
UaTransport instance.public CompletableFuture<UaTransport> disconnect()
UaTransportSome transports may actually be connection-less (e.g. HTTP), making this method a misnomer, but it should be called to un-initialize the transport regardless.
UaTransport instance.public CompletableFuture<io.netty.channel.Channel> channel()
AbstractTransportChannel suitable for sending a request on.
The Channel must have a handler capable of matching inbound responses to pending outbound
UaTransportRequests.
channel in class AbstractTransportChannel 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 UaTransportsendRequest in class AbstractTransportrequest - the UaRequestMessage to send.CompletableFuture representing the result of the operation.Copyright © 2022. All rights reserved.