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 fileA class that can provide an instance of aServerBuilder
to be used by the gRPC proxy to create a server, and an instance of aInProcessServerBuilder
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
Fields Modifier and Type Field Description static int
DEFAULT_PRIORITY
Deprecated.The default priority for providers without a specific priority.static GrpcServerBuilderProvider
INSTANCE
Deprecated.The defaultGrpcServerBuilderProvider
.
-
Method Summary
All Methods Instance Methods Abstract Methods Default Methods Deprecated Methods Modifier and Type Method Description default int
compareTo(GrpcServerBuilderProvider o)
Deprecated.io.grpc.inprocess.InProcessServerBuilder
getInProcessServerBuilder(String sName)
Deprecated.Returns aInProcessServerBuilder
that may be used to build an in-process gRPC server.default int
getPriority()
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 Detail
-
DEFAULT_PRIORITY
static final int DEFAULT_PRIORITY
Deprecated.The default priority for providers without a specific priority.- See Also:
- Constant Field Values
-
INSTANCE
static final GrpcServerBuilderProvider INSTANCE
Deprecated.The defaultGrpcServerBuilderProvider
.
-
-
Method Detail
-
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
io.grpc.inprocess.InProcessServerBuilder getInProcessServerBuilder(String sName)
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
default int compareTo(GrpcServerBuilderProvider o)
Deprecated.- Specified by:
compareTo
in interfaceComparable<GrpcServerBuilderProvider>
-
-