com.google.cloud.firestore.FirestoreRpcContext Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of google-cloud-firestore Show documentation
Show all versions of google-cloud-firestore Show documentation
Java idiomatic client for Google Cloud Firestore.
/*
* Copyright 2020 Google LLC
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package com.google.cloud.firestore;
import com.google.api.core.ApiClock;
import com.google.api.core.ApiFuture;
import com.google.api.core.InternalApi;
import com.google.api.core.InternalExtensionOnly;
import com.google.api.gax.rpc.BidiStreamObserver;
import com.google.api.gax.rpc.BidiStreamingCallable;
import com.google.api.gax.rpc.ClientStream;
import com.google.api.gax.rpc.ResponseObserver;
import com.google.api.gax.rpc.ServerStreamingCallable;
import com.google.api.gax.rpc.UnaryCallable;
import com.google.cloud.firestore.spi.v1.FirestoreRpc;
import org.threeten.bp.Duration;
@InternalApi
@InternalExtensionOnly
interface FirestoreRpcContext {
FS getFirestore();
String getDatabaseName();
ResourcePath getResourcePath();
FirestoreRpc getClient();
Duration getTotalRequestTimeout();
ApiClock getClock();
ApiFuture sendRequest(
RequestT requestT, UnaryCallable callable);
void streamRequest(
RequestT requestT,
ResponseObserver responseObserverT,
ServerStreamingCallable callable);
ClientStream streamRequest(
BidiStreamObserver responseObserverT,
BidiStreamingCallable callable);
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy