-
- All Known Implementing Classes:
GrpcRoutingImpl
public interface GrpcRoutingGrpcRouting represents the composition of gRPC services with interceptors and routing rules. It is together withGrpcServerConfiguration.Buildera cornerstone of theGrpcServer.
-
-
Nested Class Summary
Nested Classes Modifier and Type Interface Description static classGrpcRouting.BuilderA builder that can buildGrpcRoutinginstances.
-
Method Summary
All Methods Static Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description static GrpcRouting.Builderbuilder()Obtain a GrpcRouting builder.default GrpcServercreateServer()Creates newGrpcServerinstance with this routing and default configuration.default GrpcServercreateServer(GrpcServerConfiguration configuration)Creates newGrpcServerinstance with provided configuration and this routing.PriorityBag<io.grpc.ServerInterceptor>interceptors()Obtain aListof the globalinterceptorsthat should be applied to all services.List<ServiceDescriptor>services()
-
-
-
Method Detail
-
services
List<ServiceDescriptor> services()
- Returns:
- a
Listof theServiceDescriptorinstances contained in thisGrpcRouting
-
interceptors
PriorityBag<io.grpc.ServerInterceptor> interceptors()
Obtain aListof the globalinterceptorsthat should be applied to all services.- Returns:
- a
Listof the globalinterceptorsthat should be applied to all services
-
builder
static GrpcRouting.Builder builder()
Obtain a GrpcRouting builder.- Returns:
- a GrpcRouting builder
-
createServer
default GrpcServer createServer(GrpcServerConfiguration configuration)
Creates newGrpcServerinstance with provided configuration and this routing.- Parameters:
configuration- a gRPC server configuration- Returns:
- new
GrpcServerinstance - Throws:
IllegalStateException- if none SPI implementation found
-
createServer
default GrpcServer createServer()
Creates newGrpcServerinstance with this routing and default configuration.- Returns:
- new
GrpcServerinstance - Throws:
IllegalStateException- if none SPI implementation found
-
-