DataHandler

public interface DataHandler

A callback interface to be implemented for the reception of subscribed/stored resources. See Session.declareSubscriber(String,SubMode,DataHandler) and Session.declareStorage(String,StorageHandler).

Methods

handleData

public void handleData(String rname, ByteBuffer data, DataInfo info)

The method that will be called on reception of data matching the subscribed or stored resource.

Parameters:
  • rname – the resource name of the received data.
  • data – the received data.
  • info – the DataInfo associated with the received data.