Publisher¶
-
public class
Publisher
¶ A Publisher (see
Session.declarePublisher(String)
).
Methods¶
streamCompactData¶
-
public void
streamCompactData
(ByteBuffer data)¶ Send data in a compact_data message for the resource published by this Publisher.
Parameters: - data – the data to be sent.
Throws: - ZException – if write fails.
streamData¶
-
public void
streamData
(ByteBuffer data)¶ Send data in a stream_data message for the resource published by this Publisher.
Parameters: - data – the data to be sent.
Throws: - ZException – if write fails.
streamData¶
-
public void
streamData
(ByteBuffer data, short encoding, short kind)¶ Send data in a stream_data message for the resource published by this Publisher.
Parameters: - data – the data to be sent.
- encoding – a metadata information associated with the published data that represents the encoding of the published data.
- kind – a metadata information associated with the published data that represents the kind of publication.
Throws: - ZException – if write fails.
undeclare¶
-
public void
undeclare
()¶ Undeclare the Publisher.
Throws: - ZException – if undeclaration failed.