Publisher

public class Publisher

A Publisher (see Session.declarePublisher(String)).

Constructors

Publisher

protected Publisher(zn_pub_t pub)

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:

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:

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:

undeclare

public void undeclare()

Undeclare the Publisher.

Throws: