Skip to content
This repository has been archived by the owner on Aug 13, 2024. It is now read-only.

Commit

Permalink
Use NullMetricsFactory so the CloudWatch factory isn't used. (#6)
Browse files Browse the repository at this point in the history
  • Loading branch information
Brandon Amos committed Jan 4, 2014
1 parent 9333ef0 commit 46ce676
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,7 @@
import com.amazonaws.services.kinesis.clientlibrary.lib.worker.InitialPositionInStream;
import com.amazonaws.services.kinesis.clientlibrary.lib.worker.KinesisClientLibConfiguration;
import com.amazonaws.services.kinesis.clientlibrary.lib.worker.Worker;
import com.amazonaws.services.kinesis.metrics.impl.NullMetricsFactory;


/**
Expand Down Expand Up @@ -82,7 +83,7 @@ public static void main(String[] args) throws IOException {


IRecordProcessorFactory recordProcessorFactory = new SampleRecordProcessorFactory();
Worker worker = new Worker(recordProcessorFactory, kinesisClientLibConfiguration);
Worker worker = new Worker(recordProcessorFactory, kinesisClientLibConfiguration, new NullMetricsFactory());

int exitCode = 0;
try {
Expand Down

0 comments on commit 46ce676

Please sign in to comment.