Skip to content
Permalink
Browse files
Set subscribe request constructor private
  • Loading branch information
tmaret committed Jan 5, 2019
1 parent c5fb82a commit 93aa098d60e5d7d4cce2c5b1088a076e985122df
Showing 1 changed file with 2 additions and 2 deletions.
@@ -24,13 +24,13 @@
import javax.annotation.ParametersAreNonnullByDefault;

@ParametersAreNonnullByDefault
public class SubscribeRequest {
public final class SubscribeRequest {
private final String topic;
private final Consumer<Received> callback;
private Position position;
private Seek seek = Seek.latest;

public SubscribeRequest(String topic, Consumer<Received> callback) {
private SubscribeRequest(String topic, Consumer<Received> callback) {
this.topic = topic;
this.callback = callback;
}

0 comments on commit 93aa098

Please sign in to comment.