Interface SignalMapper<T extends org.eclipse.ditto.signals.base.WithId>

  • Type Parameters:
    T - the type of the source signal

    public interface SignalMapper<T extends org.eclipse.ditto.signals.base.WithId>
    Implementations of this interface handle different type of signals (e.g. thing or policy signal).
    • Method Detail

      • mapSignalToAdaptable

        Adaptable mapSignalToAdaptable​(T signal,
                                       TopicPath.Channel channel)
        Is called during the mapping from a signal to an Adaptable.
        Parameters:
        signal - the source Signal from which to map an Adaptable
        channel - the channel used to send the signal
        Returns:
        an Adaptable