Interface ProtocolManager<O extends OutgoingMessage,E extends LiveScoutEntityBase>

All Known Implementing Classes:
LiveFeedProtocolManager

public interface ProtocolManager<O extends OutgoingMessage,E extends LiveScoutEntityBase>
Represents a class used to manage access to the underlying Protocol.
  • Method Details

    • close

      void close()
      Closes the underlying Protocol and components associated with it.
    • open

      void open()
      Opens the underlying Protocol and components associated with it
    • reconnect

      void reconnect()
      Reconnects the underlying feed
    • sendMessage

      void sendMessage(String data)
      Forwards the passed data as-is to the underlying protocol which sends it to the server. There is no rate-limiting.
      Parameters:
      data - - outgoing data
    • setListener

      void setListener(ProtocolManagerListener<E> listener)
      Sets the ProtocolManagerListener instance used to observe the current ProtocolManager
      Parameters:
      listener - the ProtocolManagerListener instance used to observe the current ProtocolManager