Interface TwinSubscriber

    • Method Summary

      All Methods Instance Methods Abstract Methods 
      Modifier and Type Method Description
      <T> java.io.Closeable subscribe​(java.lang.String key, java.lang.Class<T> clazz, java.util.function.Consumer<T> consumer)  
      • Methods inherited from interface java.io.Closeable

        close
    • Method Detail

      • subscribe

        <T> java.io.Closeable subscribe​(java.lang.String key,
                                        java.lang.Class<T> clazz,
                                        java.util.function.Consumer<T> consumer)
        Type Parameters:
        T - T is an object type that needs to be replicated from OpenNMS to Minion.
        Parameters:
        key - Unique key for the object.
        clazz - Specific bean class of T to marshal/unmarshal.
        consumer - Consumer of T for subsequent updates to T.
        Returns:
        Closeable to close the subscription of T.