Class MessageHandlingHelper<T extends com.google.protobuf.GeneratedMessageV3>
java.lang.Object
org.springframework.cloud.function.grpc.MessageHandlingHelper<T>
- All Implemented Interfaces:
org.springframework.context.Lifecycle
,org.springframework.context.Phased
,org.springframework.context.SmartLifecycle
public class MessageHandlingHelper<T extends com.google.protobuf.GeneratedMessageV3>
extends Object
implements org.springframework.context.SmartLifecycle
- Since:
- 3.2
- Author:
- Oleg Zhurakousky
-
Field Summary
Fields inherited from interface org.springframework.context.SmartLifecycle
DEFAULT_PHASE
-
Constructor Summary
ConstructorsConstructorDescriptionMessageHandlingHelper
(List<GrpcMessageConverter<?>> grpcConverters, FunctionCatalog functionCatalog, FunctionProperties funcProperties) -
Method Summary
Modifier and TypeMethodDescriptionio.grpc.stub.StreamObserver<T>
io.grpc.stub.StreamObserver<T>
clientStream
(io.grpc.stub.StreamObserver<T> responseObserver, Class<T> grpcMessageType) boolean
void
requestReply
(T request, io.grpc.stub.StreamObserver<T> responseObserver) void
serverStream
(T request, io.grpc.stub.StreamObserver<T> responseObserver) void
start()
void
stop()
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface org.springframework.context.SmartLifecycle
getPhase, isAutoStartup, stop
-
Constructor Details
-
MessageHandlingHelper
public MessageHandlingHelper(List<GrpcMessageConverter<?>> grpcConverters, FunctionCatalog functionCatalog, FunctionProperties funcProperties)
-
-
Method Details
-
requestReply
-
serverStream
-
clientStream
-
biStream
-
start
public void start()- Specified by:
start
in interfaceorg.springframework.context.Lifecycle
-
stop
public void stop()- Specified by:
stop
in interfaceorg.springframework.context.Lifecycle
-
isRunning
public boolean isRunning()- Specified by:
isRunning
in interfaceorg.springframework.context.Lifecycle
-