Interface ChanneledConnectorOutputTypeTranslator<S,T>

Type Parameters:
S - the source type (see TypeTranslator)
T - the target type (see TypeTranslator)
All Superinterfaces:
de.iip_ecosphere.platform.transport.serialization.OutputTypeTranslator<S,T>
All Known Implementing Classes:
ChanneledConnectorOutputTypeAdapter

public interface ChanneledConnectorOutputTypeTranslator<S,T> extends de.iip_ecosphere.platform.transport.serialization.OutputTypeTranslator<S,T>
Refines the TypeTranslator for the use with channeled connectors and actual channel names including a delegating default implementation of the type translator method passing in the default channel name.
Author:
Holger Eichelberger, SSE
  • Method Summary

    Modifier and Type
    Method
    Description
    to(String channel, S source)
    Translates a source value into a target value ("output to external").
    default T
    to(S source)
     
  • Method Details

    • to

      T to(String channel, S source) throws IOException
      Translates a source value into a target value ("output to external").
      Parameters:
      channel - the channel the value was received on
      source - the source value to be translated
      Returns:
      the target value
      Throws:
      IOException - in case that translation fails
    • to

      default T to(S source) throws IOException
      Specified by:
      to in interface de.iip_ecosphere.platform.transport.serialization.OutputTypeTranslator<S,T>
      Throws:
      IOException