/** * Build configuration settings used by producer. * * @return * @throws SiteWhereException */ protected Properties buildConfiguration() throws SiteWhereException { Properties config = new Properties(); config.put(ProducerConfig.BOOTSTRAP_SERVERS_CONFIG, getMicroservice().getInstanceSettings().getKafkaBootstrapServers()); config.put(ProducerConfig.ACKS_CONFIG, getAckPolicy().getConfig()); config.put(ProducerConfig.KEY_SERIALIZER_CLASS_CONFIG, StringSerializer.class.getName()); config.put(ProducerConfig.VALUE_SERIALIZER_CLASS_CONFIG, ByteArraySerializer.class.getName()); return config; }