Package com.oracle.coherence.grpc.proxy
Interface GrpcServerBuilderProvider
- All Superinterfaces:
Comparable<GrpcServerBuilderProvider>
@Deprecated(since="22.06.2")
public interface GrpcServerBuilderProvider
extends Comparable<GrpcServerBuilderProvider>
Deprecated.
the gRPC proxy server is configured and built as a
normal proxy service configured with a gRPC acceptor
in the system cache configuration file
A class that can provide an instance of a
ServerBuilder
to be used by the gRPC proxy to create a server, and an instance of a
InProcessServerBuilder to build an in-process gRPC server.
Instances of this class will be discovered using the ServiceLoader.
If multiple instances are on the classpath the instance with the the highest priority
will be used. If multiple discovered instances share the highest priority the instance
used will be undetermined.
- Since:
- 20.12
- Author:
- Jonathan Knight 2020.11.24
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final intDeprecated.The default priority for providers without a specific priority.static final GrpcServerBuilderProviderDeprecated.The defaultGrpcServerBuilderProvider. -
Method Summary
Modifier and TypeMethodDescriptiondefault intDeprecated.io.grpc.inprocess.InProcessServerBuildergetInProcessServerBuilder(String sName) Deprecated.Returns aInProcessServerBuilderthat may be used to build an in-process gRPC server.default intDeprecated.Obtain the priority of thisGrpcServerBuilderProvider.io.grpc.ServerBuilder<?>getServerBuilder(int nPort) Deprecated.Returns aServerBuilderthat may be used to build a gRPC server.
-
Field Details
-
DEFAULT_PRIORITY
static final int DEFAULT_PRIORITYDeprecated.The default priority for providers without a specific priority.- See Also:
-
INSTANCE
Deprecated.The defaultGrpcServerBuilderProvider.
-
-
Method Details
-
getServerBuilder
io.grpc.ServerBuilder<?> getServerBuilder(int nPort) Deprecated.Returns aServerBuilderthat may be used to build a gRPC server.- Parameters:
nPort- the default port to bind to- Returns:
- a
ServerBuilderthat may be used to build a gRPC server
-
getInProcessServerBuilder
Deprecated.Returns aInProcessServerBuilderthat may be used to build an in-process gRPC server.- Parameters:
sName- the default name for the in-process server- Returns:
- a
InProcessServerBuilderthat may be used to build an in-process gRPC server
-
getPriority
default int getPriority()Deprecated.Obtain the priority of thisGrpcServerBuilderProvider.If multiple
GrpcServerBuilderProviderinstances are discovered by theServiceLoaderthen the one with the highest priority will be used. If multiple instances have the same highest priority then the instance used is undetermined.- Returns:
- the priority of this
GrpcServerBuilderProvider
-
compareTo
Deprecated.- Specified by:
compareToin interfaceComparable<GrpcServerBuilderProvider>
-