Class Grpc
java.lang.Object
org.springframework.integration.grpc.dsl.Grpc
Factory class for gRPC components.
Provides static factory methods for creating gRPC component specifications for Spring Integration DSL flows.
- Since:
- 7.1
- Author:
- Glenn Renfro
-
Method Summary
Modifier and TypeMethodDescriptionstatic GrpcInboundGatewaySpecinboundGateway(Class<? extends io.grpc.BindableService> grpcServiceClass) Create aGrpcInboundGatewaySpecfor an inbound gateway.static GrpcOutboundGatewaySpecoutboundGateway(io.grpc.Channel channel, Class<?> grpcServiceClass) Create aGrpcOutboundGatewaySpecfor an outbound gateway.
-
Method Details
-
outboundGateway
public static GrpcOutboundGatewaySpec outboundGateway(io.grpc.Channel channel, Class<?> grpcServiceClass) Create aGrpcOutboundGatewaySpecfor an outbound gateway.- Parameters:
channel- the gRPC channel to use for communicationgrpcServiceClass- the gRPC service class- Returns:
- the
GrpcOutboundGatewaySpec
-
inboundGateway
public static GrpcInboundGatewaySpec inboundGateway(Class<? extends io.grpc.BindableService> grpcServiceClass) Create aGrpcInboundGatewaySpecfor an inbound gateway.- Parameters:
grpcServiceClass- the gRPC service class- Returns:
- the
GrpcInboundGatewaySpec
-