public class MessageHandlingHelper<T extends com.google.protobuf.GeneratedMessageV3> extends Object implements org.springframework.context.SmartLifecycle
| Constructor and Description |
|---|
MessageHandlingHelper(List<GrpcMessageConverter<?>> grpcConverters,
FunctionCatalog functionCatalog,
FunctionProperties funcProperties) |
| Modifier and Type | Method and Description |
|---|---|
io.grpc.stub.StreamObserver<T> |
biStream(io.grpc.stub.StreamObserver<T> responseObserver,
Class<T> grpcMessageType) |
io.grpc.stub.StreamObserver<T> |
clientStream(io.grpc.stub.StreamObserver<T> responseObserver,
Class<T> grpcMessageType) |
boolean |
isRunning() |
void |
requestReply(T request,
io.grpc.stub.StreamObserver<T> responseObserver) |
void |
serverStream(T request,
io.grpc.stub.StreamObserver<T> responseObserver) |
void |
start() |
void |
stop() |
public MessageHandlingHelper(List<GrpcMessageConverter<?>> grpcConverters, FunctionCatalog functionCatalog, FunctionProperties funcProperties)
public io.grpc.stub.StreamObserver<T> clientStream(io.grpc.stub.StreamObserver<T> responseObserver, Class<T> grpcMessageType)
public io.grpc.stub.StreamObserver<T> biStream(io.grpc.stub.StreamObserver<T> responseObserver, Class<T> grpcMessageType)
public void start()
start in interface org.springframework.context.Lifecyclepublic void stop()
stop in interface org.springframework.context.Lifecyclepublic boolean isRunning()
isRunning in interface org.springframework.context.LifecycleCopyright © 2022 Pivotal Software, Inc.. All rights reserved.