Interface JsonPublisher

All Superinterfaces:
Publisher

public interface JsonPublisher extends Publisher
An object that can send JSON messages for a subject that StreamLink is providing
  • Method Details

    • setDiscardHandler

      void setDiscardHandler(JsonDiscardHandler discardHandler)
      Sets an object to be called back when a discard is received for the current subject
      Parameters:
      discardHandler - a JsonDiscardHandler object to receive the onDiscard callback
    • send

      void send(Object jsonObject, CommandListener commandListener)
      Sends a Message to Liberator for the current subject
      Parameters:
      jsonObject - the json object to send
      commandListener - an object with callbacks for the success/failure of sending this message