diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/main/java/com/att/nsa/mr/test/clients/SamplePublisher.java | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/main/java/com/att/nsa/mr/test/clients/SamplePublisher.java b/src/main/java/com/att/nsa/mr/test/clients/SamplePublisher.java index 36c2b7f..0233dcb 100644 --- a/src/main/java/com/att/nsa/mr/test/clients/SamplePublisher.java +++ b/src/main/java/com/att/nsa/mr/test/clients/SamplePublisher.java @@ -42,7 +42,7 @@ public class SamplePublisher { final String hosts = ( args.length > 0 ? args[0] : "localhost:8181" ); // read the topic name from the command line - //final String topic = ( args.length > 1 ? args[1] : "MY-EXAMPLE-TOPIC" ); + final String topic = ( args.length > 1 ? args[1] : "com.att.app.dmaap.mr.testingTopic" ); // set up some batch limits and the compression flag @@ -74,7 +74,7 @@ public class SamplePublisher { // publisher interface allows the app to get the set of unsent messages. It could // write them to disk, for example, to try to send them later. final List<message> stuck = pub.close ( 20, TimeUnit.SECONDS ); - if ( stuck.size () > 0 ) + if ( stuck.isEmpty()) { LOG.warn ( stuck.size() + " messages unsent" ); } |