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 aServerBuilderto be used by the gRPC proxy to create a server, and an instance of aInProcessServerBuilderto 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 intDEFAULT_PRIORITYDeprecated.The default priority for providers without a specific priority.static GrpcServerBuilderProviderINSTANCEDeprecated.The defaultGrpcServerBuilderProvider.
-
Method Summary
All Methods Instance Methods Abstract Methods Default Methods Deprecated Methods Modifier and Type Method Description default intcompareTo(GrpcServerBuilderProvider o)Deprecated.io.grpc.inprocess.InProcessServerBuildergetInProcessServerBuilder(String sName)Deprecated.Returns aInProcessServerBuilderthat may be used to build an in-process gRPC server.default intgetPriority()Deprecated.Obtain the priority of thisGrpcServerBuilderProvider.io.grpc.ServerBuilder<?>getServerBuilder(int nPort)Deprecated.Returns aServerBuilderthat 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 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
io.grpc.inprocess.InProcessServerBuilder getInProcessServerBuilder(String sName)
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
default int compareTo(GrpcServerBuilderProvider o)
Deprecated.- Specified by:
compareToin interfaceComparable<GrpcServerBuilderProvider>
-
-