Package com.caplin.streamlink
Interface JsonPublisher
- All Superinterfaces:
Publisher
An object that can send JSON messages for a subject that StreamLink is providing
-
Method Summary
Modifier and TypeMethodDescriptionvoid
send
(Object jsonObject, CommandListener commandListener) Sends a Message to Liberator for the current subjectvoid
setDiscardHandler
(JsonDiscardHandler discardHandler) Sets an object to be called back when a discard is received for the current subjectMethods inherited from interface com.caplin.streamlink.Publisher
close, getSubject, isClosed, isDiscarded
-
Method Details
-
setDiscardHandler
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
Sends a Message to Liberator for the current subject- Parameters:
jsonObject
- the json object to sendcommandListener
- an object with callbacks for the success/failure of sending this message
-