Class OsgiTwinPublisher

  • All Implemented Interfaces:
    java.io.Closeable, java.lang.AutoCloseable, TwinPublisher

    public class OsgiTwinPublisher
    extends java.lang.Object
    implements TwinPublisher
    • Constructor Detail

      • OsgiTwinPublisher

        public OsgiTwinPublisher()
    • Method Detail

      • register

        public <T> TwinPublisher.Session<T> register​(java.lang.String key,
                                                     java.lang.Class<T> clazz,
                                                     java.lang.String location)
                                              throws java.io.IOException
        Specified by:
        register in interface TwinPublisher
        Type Parameters:
        T - type of object for replication
        Parameters:
        key - unique key for the object.
        clazz - a class used for serialization.
        location - targeted Minion location for the object, set null for all locations.
        Returns:
        Session which provides updates to object.
        Throws:
        java.io.IOException
      • close

        public void close()
                   throws java.io.IOException
        Specified by:
        close in interface java.lang.AutoCloseable
        Specified by:
        close in interface java.io.Closeable
        Throws:
        java.io.IOException