- java.lang.Object
-
- io.helidon.grpc.server.GrpcServer.Builder
-
- All Implemented Interfaces:
Builder<GrpcServer>
,Supplier<GrpcServer>
- Enclosing interface:
- GrpcServer
public static final class GrpcServer.Builder extends Object implements Builder<GrpcServer>
GrpcServer builder class provides a convenient way to timed a GrpcServer instance.
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description GrpcServer
build()
Builds theGrpcServer
instance as configured by this builder and its parameters.GrpcServer.Builder
config(GrpcServerConfiguration configuration)
Set a configuration of theGrpcServer
.GrpcServer.Builder
config(Supplier<GrpcServerConfiguration> configurationBuilder)
Set a configuration of theGrpcServer
.
-
-
-
Method Detail
-
config
public GrpcServer.Builder config(GrpcServerConfiguration configuration)
Set a configuration of theGrpcServer
.- Parameters:
configuration
- the configuration- Returns:
- an updated builder
-
config
public GrpcServer.Builder config(Supplier<GrpcServerConfiguration> configurationBuilder)
Set a configuration of theGrpcServer
.- Parameters:
configurationBuilder
- the configuration builder- Returns:
- an updated builder
-
build
public GrpcServer build()
Builds theGrpcServer
instance as configured by this builder and its parameters.- Specified by:
build
in interfaceBuilder<GrpcServer>
- Returns:
- a ready to use
GrpcServer
-
-