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 Summary
Modifier and TypeMethodDescriptionvoidclose()Closes the underlyingProtocoland components associated with it.voidopen()Opens the underlyingProtocoland components associated with itvoidReconnects the underlying feedvoidsendMessage(String data) Forwards the passed data as-is to the underlying protocol which sends it to the server.voidsetListener(ProtocolManagerListener<E> listener) Sets theProtocolManagerListenerinstance used to observe the currentProtocolManager
-
Method Details
-
close
void close()Closes the underlyingProtocoland components associated with it. -
open
void open()Opens the underlyingProtocoland components associated with it -
reconnect
void reconnect()Reconnects the underlying feed -
sendMessage
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
Sets theProtocolManagerListenerinstance used to observe the currentProtocolManager- Parameters:
listener- theProtocolManagerListenerinstance used to observe the currentProtocolManager
-