Interface TransportChannel

All Known Implementing Classes:
TaskTransportChannel, TcpTransportChannel

public interface TransportChannel
A transport channel allows to send a response to a request on the channel.
  • Field Details

    • logger

      static final org.apache.logging.log4j.Logger logger
  • Method Details

    • getProfileName

       getProfileName()
    • getChannelType

       getChannelType()
    • sendResponse

      void sendResponse(TransportResponse response) throws
      Throws:
    • sendResponse

      void sendResponse( exception) throws
      Throws:
    • getVersion

      default Version getVersion()
      Returns the version of the other party that this channel will send a response to.
    • sendErrorResponse

      static void sendErrorResponse(TransportChannel channel,  actionName, TransportRequest request,  e)
      A helper method to send an exception and handle and log a subsequent exception