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 SummaryModifier 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- 
closevoid close()Closes the underlyingProtocoland components associated with it.
- 
openvoid open()Opens the underlyingProtocoland components associated with it
- 
reconnectvoid reconnect()Reconnects the underlying feed
- 
sendMessageForwards the passed data as-is to the underlying protocol which sends it to the server. There is no rate-limiting.- Parameters:
- data- - outgoing data
 
- 
setListenerSets theProtocolManagerListenerinstance used to observe the currentProtocolManager- Parameters:
- listener- the- ProtocolManagerListenerinstance used to observe the current- ProtocolManager
 
 
-