Class IngestServiceGrpc.IngestServiceStub
- java.lang.Object
-
- io.grpc.stub.AbstractStub<S>
-
- io.grpc.stub.AbstractAsyncStub<IngestServiceGrpc.IngestServiceStub>
-
- cz.o2.proxima.direct.server.rpc.proto.service.IngestServiceGrpc.IngestServiceStub
-
- Enclosing class:
- IngestServiceGrpc
public static final class IngestServiceGrpc.IngestServiceStub extends io.grpc.stub.AbstractAsyncStub<IngestServiceGrpc.IngestServiceStub>
A stub to allow clients to do asynchronous rpc calls to service IngestService.Ingest service serves as data entry point. All data is sent to the system via this endpoint.
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected IngestServiceGrpc.IngestServiceStubbuild(io.grpc.Channel channel, io.grpc.CallOptions callOptions)voidcommit(Rpc.TransactionCommitRequest request, io.grpc.stub.StreamObserver<Rpc.TransactionCommitResponse> responseObserver)A synchronous request to commit a transaction.voidingest(Rpc.Ingest request, io.grpc.stub.StreamObserver<Rpc.Status> responseObserver)Synchronous ingest request.io.grpc.stub.StreamObserver<Rpc.IngestBulk>ingestBulk(io.grpc.stub.StreamObserver<Rpc.StatusBulk> responseObserver)The main ingest method.io.grpc.stub.StreamObserver<Rpc.Ingest>ingestSingle(io.grpc.stub.StreamObserver<Rpc.Status> responseObserver)Stream ingestion with single ingest requests.-
Methods inherited from class io.grpc.stub.AbstractStub
getCallOptions, getChannel, withCallCredentials, withChannel, withCompression, withDeadline, withDeadlineAfter, withDeadlineAfter, withExecutor, withInterceptors, withMaxInboundMessageSize, withMaxOutboundMessageSize, withOnReadyThreshold, withOption, withWaitForReady
-
-
-
-
Method Detail
-
build
protected IngestServiceGrpc.IngestServiceStub build(io.grpc.Channel channel, io.grpc.CallOptions callOptions)
- Specified by:
buildin classio.grpc.stub.AbstractStub<IngestServiceGrpc.IngestServiceStub>
-
ingestBulk
public io.grpc.stub.StreamObserver<Rpc.IngestBulk> ingestBulk(io.grpc.stub.StreamObserver<Rpc.StatusBulk> responseObserver)
The main ingest method. Use this for high performance ingest requests. Note that the returned StatusBulk will not be necesarilly corresponding the the input bulk. So each IngestBulk can result in any number of StatusBulk messages. It is up to the application to handle the StatusBulk as a stream of individual Statuses.
-
ingestSingle
public io.grpc.stub.StreamObserver<Rpc.Ingest> ingestSingle(io.grpc.stub.StreamObserver<Rpc.Status> responseObserver)
Stream ingestion with single ingest requests. Use this method when sending small isolated and infrequent ingest requests.
-
ingest
public void ingest(Rpc.Ingest request, io.grpc.stub.StreamObserver<Rpc.Status> responseObserver)
Synchronous ingest request.
-
commit
public void commit(Rpc.TransactionCommitRequest request, io.grpc.stub.StreamObserver<Rpc.TransactionCommitResponse> responseObserver)
A synchronous request to commit a transaction.
-
-