Skip to content

Commit

Permalink
Reduce method visibility
Browse files Browse the repository at this point in the history
  • Loading branch information
sopel39 committed Sep 27, 2019
1 parent 8d82a10 commit f1a1277
Showing 1 changed file with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -46,12 +46,12 @@ public final class PartitionedConsumption<T>
@Nullable
private List<Partition<T>> partitions;

public PartitionedConsumption(int consumersCount, Iterable<Integer> partitionNumbers, IntFunction<ListenableFuture<T>> loader, IntConsumer disposer)
PartitionedConsumption(int consumersCount, Iterable<Integer> partitionNumbers, IntFunction<ListenableFuture<T>> loader, IntConsumer disposer)
{
this(consumersCount, immediateFuture(null), partitionNumbers, loader, disposer);
}

public PartitionedConsumption(
private PartitionedConsumption(
int consumersCount,
ListenableFuture<?> activator,
Iterable<Integer> partitionNumbers,
Expand Down Expand Up @@ -83,7 +83,7 @@ private List<Partition<T>> createPartitions(
return partitions.build();
}

public Iterator<Partition<T>> beginConsumption()
Iterator<Partition<T>> beginConsumption()
{
Queue<Partition<T>> partitions = new ArrayDeque<>(requireNonNull(this.partitions, "partitions is already null"));
if (consumed.incrementAndGet() >= consumersCount) {
Expand Down

0 comments on commit f1a1277

Please sign in to comment.