Interface PubSubListener


public interface PubSubListener
Interface to listen for Pub/Sub changes. Use the PubSubEventDispatcher.addListener(PubSubListener) method to register for events.
Author:
Guus der Kinderen, guus@goodbytes.nl
  • Method Details

    • itemsPublished

      void itemsPublished(@Nonnull Node.UniqueIdentifier nodeId, @Nonnull Collection<PublishedItem> items)
      One or more items were published on a node. All items are published on the same node.
      Parameters:
      nodeId - the identifier of the node on which the items were published.
      items - the published items.
    • itemsDeleted

      void itemsDeleted(@Nonnull Node.UniqueIdentifier nodeId, @Nonnull Collection<PublishedItem> items)
      One or more items were deleted from a node. All items are deleted from the same node.
      Parameters:
      nodeId - the identifier of the node on which the items were published.
      items - the deleted items.