Class MemoryTwinSubscriber

    • Method Detail

      • subscribe

        public <T> Closeable subscribe​(String key,
                                       Class<T> clazz,
                                       java.util.function.Consumer<T> consumer)
        Specified by:
        subscribe in interface TwinSubscriber
        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.