Skip to content
This repository has been archived by the owner on Apr 7, 2021. It is now read-only.

Commit

Permalink
refactor: use queue instead of deque
Browse files Browse the repository at this point in the history
  • Loading branch information
heiko.rothe committed Jan 15, 2021
1 parent c0190c1 commit 408c596
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
import java.util.Map;
import java.util.concurrent.BlockingQueue;
import java.util.concurrent.LinkedBlockingDeque;
import java.util.concurrent.LinkedBlockingQueue;
import java.util.concurrent.TimeUnit;
import java.util.stream.Collectors;
import java.util.stream.Stream;
Expand All @@ -26,7 +27,7 @@ public class AmazonSNSDummyClient extends AbstractAmazonSNS {

public AmazonSNSDummyClient(String[] topics) {
this.outbound = Stream.of(topics)
.collect(Collectors.toMap(x -> x, x -> new LinkedBlockingDeque<>(), (x, y) -> x));
.collect(Collectors.toMap(x -> x, x -> new LinkedBlockingQueue<>(), (x, y) -> x));
}

@Override
Expand Down

0 comments on commit 408c596

Please sign in to comment.