public interface ITransportChannel
ITransportChannel interface.
| Modifier and Type | Interface and Description |
|---|---|
static class |
ITransportChannel.TransportChannelFeature |
| Modifier and Type | Method and Description |
|---|---|
void |
dispose()
dispose.
|
EndpointConfiguration |
getEndpointConfiguration()
getEndpointConfiguration.
|
EndpointDescription |
getEndpointDescription()
getEndpointDescription.
|
EncoderContext |
getMessageContext()
getMessageContext.
|
int |
getOperationTimeout()
Get operation timeout
|
EnumSet<ITransportChannel.TransportChannelFeature> |
getSupportedFeatures()
Get a list of features supported by the channel.
|
void |
initialize(String url,
TransportChannelSettings settings,
EncoderContext ctx)
Initialize a secure channel with endpoint identified by the URL.
|
<T extends ServiceResponse> |
serviceRequest(ServiceRequest<T> request)
Send a service request over the secure channel.
|
<T extends ServiceResponse> |
serviceRequest(ServiceRequest<T> request,
long operationTimeout)
Send a service request over the secure channel.
|
<T extends ServiceResponse> |
serviceRequestAsync(ServiceRequest<T> request)
Asynchronous operation to send a request over the secure channel.
|
<T extends ServiceResponse> |
serviceRequestAsync(ServiceRequest<T> request,
long operationTimeout)
Asynchronous operation to send a request over the secure channel.
|
void |
setOperationTimeout(int timeout)
Set operation timeout
|
void dispose()
dispose.
EndpointConfiguration getEndpointConfiguration()
getEndpointConfiguration.
EndpointConfiguration object.EndpointDescription getEndpointDescription()
getEndpointDescription.
EndpointDescription object.EncoderContext getMessageContext()
getMessageContext.
EncoderContext object.int getOperationTimeout()
EnumSet<ITransportChannel.TransportChannelFeature> getSupportedFeatures()
EnumSet object.void initialize(String url, TransportChannelSettings settings, EncoderContext ctx) throws ServiceResultException
url - a String object.settings - a TransportChannelSettings object.ctx - a EncoderContext object.ServiceResultException - if any.<T extends ServiceResponse> T serviceRequest(ServiceRequest<T> request) throws ServiceResultException
If the operation timeouts or the thread is interrupted a ServiceResultException is thrown with
StatusCodes.Bad_Timeout.
request - a ServiceRequest object.ServiceResponse object.ServiceResultException - if any.<T extends ServiceResponse> T serviceRequest(ServiceRequest<T> request, long operationTimeout) throws ServiceResultException
If the operation timeouts or the operation is interrupted and a ServiceResultException is
thrown with StatusCodes.Bad_Timeout.
request - a ServiceRequest object.operationTimeout - timeout time in millisecondsServiceResponse object.ServiceResultException - if any.<T extends ServiceResponse> AsyncResult<T> serviceRequestAsync(ServiceRequest<T> request)
request - the request<T extends ServiceResponse> AsyncResult<T> serviceRequestAsync(ServiceRequest<T> request, long operationTimeout)
request - the requestoperationTimeout - timeout timevoid setOperationTimeout(int timeout)
timeout - in millisecondsCopyright © 2026. All rights reserved.