Package com.oracle.coherence.grpc
Interface NamedCacheProtocol<Req extends com.google.protobuf.Message,Resp extends com.google.protobuf.Message>
- Type Parameters:
Req
- the request typeResp
- the response type
- All Superinterfaces:
GrpcServiceProtocol<Req,
Resp>
- All Known Implementing Classes:
NamedCacheProxyProtocol
public interface NamedCacheProtocol<Req extends com.google.protobuf.Message,Resp extends com.google.protobuf.Message>
extends GrpcServiceProtocol<Req,Resp>
A
GrpcServiceProtocol
to support the NamedCache
API.-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final String
The protocol name.static final int
The minimum supported protocol version.static final int
The current protocol version.Fields inherited from interface com.oracle.coherence.grpc.GrpcServiceProtocol
PRIORITY_NORMAL
-
Method Summary
Modifier and TypeMethodDescriptiondefault String
Return the name of this protocol.default int
Return the minimum version of the protocol this instance supports.default int
Return the version of the protocol.Methods inherited from interface com.oracle.coherence.grpc.GrpcServiceProtocol
close, getPriority, getRequestType, getResponseType, getSerializer, init, onError, onRequest
-
Field Details
-
PROTOCOL_NAME
The protocol name.- See Also:
-
VERSION
static final int VERSIONThe current protocol version.- See Also:
-
SUPPORTED_VERSION
static final int SUPPORTED_VERSIONThe minimum supported protocol version.- See Also:
-
-
Method Details
-
getProtocol
Description copied from interface:GrpcServiceProtocol
Return the name of this protocol.- Specified by:
getProtocol
in interfaceGrpcServiceProtocol<Req extends com.google.protobuf.Message,
Resp extends com.google.protobuf.Message> - Returns:
- the name of this protocol
-
getVersion
default int getVersion()Description copied from interface:GrpcServiceProtocol
Return the version of the protocol.- Specified by:
getVersion
in interfaceGrpcServiceProtocol<Req extends com.google.protobuf.Message,
Resp extends com.google.protobuf.Message> - Returns:
- the version of the protocol
-
getSupportedVersion
default int getSupportedVersion()Description copied from interface:GrpcServiceProtocol
Return the minimum version of the protocol this instance supports.- Specified by:
getSupportedVersion
in interfaceGrpcServiceProtocol<Req extends com.google.protobuf.Message,
Resp extends com.google.protobuf.Message> - Returns:
- the minimum version of the protocol this instance supports
-