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) booleanvoidrequestReply(T request, io.grpc.stub.StreamObserver<T> responseObserver) voidserverStream(T request, io.grpc.stub.StreamObserver<T> responseObserver) voidstart()voidstop()Methods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.springframework.context.SmartLifecycle
getPhase, isAutoStartup, isPauseable, 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:
startin interfaceorg.springframework.context.Lifecycle
-
stop
public void stop()- Specified by:
stopin interfaceorg.springframework.context.Lifecycle
-
isRunning
public boolean isRunning()- Specified by:
isRunningin interfaceorg.springframework.context.Lifecycle
-