org.opcfoundation.ua.transport
Interface RequestChannel

All Known Subinterfaces:
SecureChannel
All Known Implementing Classes:
HttpsClientSecureChannel, SecureChannelTcp, ServiceChannel, SessionChannel

public interface RequestChannel

RequestChannel is a channel to do service requests with.


Method Summary
 IEncodeable serviceRequest(ServiceRequest request)
          Sends a request over the secure channel.
 AsyncResult<ServiceResponse> serviceRequestAsync(ServiceRequest request)
          Asynchronous operation to send a request over the secure channel.
 

Method Detail

serviceRequest

IEncodeable serviceRequest(ServiceRequest request)
                           throws ServiceResultException
Sends a request over the secure channel.

If the operation timeouts or the thread is interrupted a ServiceResultException is thrown with StatusCodes.Bad_Timeout.

Parameters:
request - the request
Returns:
the response
Throws:
ServiceResultException - if error

serviceRequestAsync

AsyncResult<ServiceResponse> serviceRequestAsync(ServiceRequest request)
Asynchronous operation to send a request over the secure channel.

Parameters:
request - the request
Returns:
the result


Copyright © 2018. All rights reserved.