/** Constructs an instance of TopicAdminClient with default settings. */ public static final TopicAdminClient create() throws IOException { return create(TopicAdminSettings.newBuilder().build()); }
/** Constructs an instance of SubscriptionAdminClient with default settings. */ public static final SubscriptionAdminClient create() throws IOException { return create(SubscriptionAdminSettings.newBuilder().build()); }
@Override protected ListSubscriptionsPage createPage( PageContext<ListSubscriptionsRequest, ListSubscriptionsResponse, Subscription> context, ListSubscriptionsResponse response) { return new ListSubscriptionsPage(context, response); }
@Override public void receiveMessage(PubsubMessage message, AckReplyConsumer consumer) { consumer.ack(); } };
@Override public StreamObserver<StreamingPullRequest> streamingPull( StreamObserver<StreamingPullResponse> responseObserver) { Stream stream = new Stream(); stream.requestObserver = new StreamingPullRequestObserver(stream, responseObserver); stream.responseObserver = responseObserver; return stream.requestObserver; }
@Override protected ListSnapshotsFixedSizeCollection createCollection( List<ListSnapshotsPage> pages, int collectionSize) { return new ListSnapshotsFixedSizeCollection(pages, collectionSize); } }
/** * Constructs an instance of SubscriptionAdminClient, using the given settings. The channels are * created based on the settings passed in, or defaults for any settings that are not set. */ public static final SubscriptionAdminClient create(SubscriptionAdminSettings settings) throws IOException { return new SubscriptionAdminClient(settings); }
@Override protected ListSubscriptionsFixedSizeCollection createCollection( List<ListSubscriptionsPage> pages, int collectionSize) { return new ListSubscriptionsFixedSizeCollection(pages, collectionSize); } }
@Override public ListSnapshotsPagedResponse apply(ListSnapshotsPage input) { return new ListSnapshotsPagedResponse(input); } });
@Override protected ListTopicsFixedSizeCollection createCollection( List<ListTopicsPage> pages, int collectionSize) { return new ListTopicsFixedSizeCollection(pages, collectionSize); } }
@Override protected ListTopicSubscriptionsPage createPage( PageContext<ListTopicSubscriptionsRequest, ListTopicSubscriptionsResponse, String> context, ListTopicSubscriptionsResponse response) { return new ListTopicSubscriptionsPage(context, response); }
@Override public SubscriptionAdminSettings build() throws IOException { return new SubscriptionAdminSettings(this); } }
@Override public ListSubscriptionsPagedResponse apply(ListSubscriptionsPage input) { return new ListSubscriptionsPagedResponse(input); } });
@Override protected ListTopicsPage createPage( PageContext<ListTopicsRequest, ListTopicsResponse, Topic> context, ListTopicsResponse response) { return new ListTopicsPage(context, response); }
@Override public ListTopicSubscriptionsPagedResponse apply(ListTopicSubscriptionsPage input) { return new ListTopicSubscriptionsPagedResponse(input); } });
@Override protected ListTopicSubscriptionsFixedSizeCollection createCollection( List<ListTopicSubscriptionsPage> pages, int collectionSize) { return new ListTopicSubscriptionsFixedSizeCollection(pages, collectionSize); }
@Override public TopicAdminSettings build() throws IOException { return new TopicAdminSettings(this); } }
@Override public void reset() { serviceImpl.reset(); } }
@Override public void run() { pendingCallable.call(); } });
@Override public void reset() { serviceImpl.reset(); } }