Package com.caplin.streamlink
Interface RecordPublisher
- All Superinterfaces:
Publisher
An object that can send record messages for a subject that StreamLink is providing
-
Method Summary
Modifier and TypeMethodDescriptionvoid
send
(Map<String, String> fields, boolean image, CommandListener commandListener) Sends a Message to Liberator for the current subjectvoid
setDiscardHandler
(RecordDiscardHandler 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 RecordDiscardHandler object to receive the onDiscard callback
-
send
Sends a Message to Liberator for the current subject- Parameters:
fields
- the fields to sendimage
- whether this is an imagecommandListener
- an object with callbacks for the success/failure of sending this message
-