public class CommonService
extends java.lang.Object
Constructor and Description |
---|
CommonService(Stats stats,
GateKeeper gateKeeper) |
Modifier and Type | Method and Description |
---|---|
io.grpc.StatusRuntimeException |
getExceptionWithTrailers(StatusCode code,
java.lang.String message) |
<T> void |
serve(ThrowableConsumer<T> f,
T request,
io.grpc.stub.StreamObserver<com.google.protobuf.Empty> responseObserver) |
<T,R> void |
serve(ThrowableFunction<T,R> f,
T request,
io.grpc.stub.StreamObserver<R> responseObserver) |
@Inject public CommonService(Stats stats, @Nonnull GateKeeper gateKeeper)
public <T> void serve(ThrowableConsumer<T> f, T request, io.grpc.stub.StreamObserver<com.google.protobuf.Empty> responseObserver)
public <T,R> void serve(ThrowableFunction<T,R> f, T request, io.grpc.stub.StreamObserver<R> responseObserver)
public io.grpc.StatusRuntimeException getExceptionWithTrailers(StatusCode code, java.lang.String message)