Subscribing to a stream

To write an output adapter, you must subscribe to a stream.

Typically, you read the data being fed to a stream by a query module, process that data according to your application, and then send it to its final destination. For more information about streams, see Data Stream. For more information about adapters, see Adapters.

The file Example_01_GettingDataFromAStream.java contains source code demonstrating the basic steps you perform to subscribe to a data stream:

  1. Create an instance of a client.
  2. Create a CCL URI identifying the stream.
  3. Subscribe to the stream.
  4. Read data from the stream and process it.
  5. Disconnect from the stream.