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 int
Deprecated.The default priority for providers without a specific priority.static final GrpcServerBuilderProvider
Deprecated.The defaultGrpcServerBuilderProvider
. -
Method Summary
Modifier and TypeMethodDescriptiondefault int
Deprecated.io.grpc.inprocess.InProcessServerBuilder
getInProcessServerBuilder
(String sName) Deprecated.Returns aInProcessServerBuilder
that may be used to build an in-process gRPC server.default int
Deprecated.Obtain the priority of thisGrpcServerBuilderProvider
.io.grpc.ServerBuilder<?>
getServerBuilder
(int nPort) Deprecated.Returns aServerBuilder
that 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 aServerBuilder
that may be used to build a gRPC server.- Parameters:
nPort
- the default port to bind to- Returns:
- a
ServerBuilder
that may be used to build a gRPC server
-
getInProcessServerBuilder
Deprecated.Returns aInProcessServerBuilder
that may be used to build an in-process gRPC server.- Parameters:
sName
- the default name for the in-process server- Returns:
- a
InProcessServerBuilder
that may be used to build an in-process gRPC server
-
getPriority
default int getPriority()Deprecated.Obtain the priority of thisGrpcServerBuilderProvider
.If multiple
GrpcServerBuilderProvider
instances are discovered by theServiceLoader
then 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:
compareTo
in interfaceComparable<GrpcServerBuilderProvider>
-