package com.emc.example.client;

import java.io.DataInputStream;
import java.io.IOException;
import java.net.Socket;

import com.emc.example.client.dummy.SensorData;
import com.emc.example.client.dummy.SensorEvent;
import com.emc.nautilus.streaming.Producer;
import com.emc.nautilus.streaming.ProducerConfig;
import com.emc.nautilus.streaming.Serializer;
import com.emc.nautilus.streaming.Stream;
import com.emc.nautilus.streaming.StreamManager;

public class StreamProducerSink {

	public StreamProducerSink(StreamManager streamManager, Socket clientSocket, Serializer<SensorEvent> serializer) {
		this.streamManager = streamManager;
		this.clientSocket = clientSocket;
		this.serializer = serializer;
	}
	
	StreamManager streamManager;
	private Socket clientSocket;
	private Serializer<SensorEvent> serializer;
	private boolean isRunning = true;

	//...
	public void run() throws IOException {
		DataInputStream rawTCP = new DataInputStream(clientSocket.getInputStream());
		Stream stream = streamManager.getStream("rawSensorStream");
		Producer<SensorEvent> producer = stream.createProducer(serializer, new ProducerConfig());

		while (isRunning ) {
			SensorData sd = SensorData.fromTCP(rawTCP);
			String routingKey = sd.sensor_id;
			SensorEvent e = new SensorEvent(sd);
			producer.publish(routingKey, e);
		}

	}
	//...
}
@@ -1118,16 +1118,20 @@
 rConfig(
+null
 ));%0A%0A%09%09w

Fix compile error in example