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 StringThe protocol name.static final intThe minimum supported protocol version.static final intThe current protocol version.Fields inherited from interface com.oracle.coherence.grpc.GrpcServiceProtocol
PRIORITY_NORMAL -
Method Summary
Modifier and TypeMethodDescriptiondefault StringReturn the name of this protocol.default intReturn the minimum version of the protocol this instance supports.default intReturn 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:GrpcServiceProtocolReturn the name of this protocol.- Specified by:
getProtocolin 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:GrpcServiceProtocolReturn the version of the protocol.- Specified by:
getVersionin 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:GrpcServiceProtocolReturn the minimum version of the protocol this instance supports.- Specified by:
getSupportedVersionin interfaceGrpcServiceProtocol<Req extends com.google.protobuf.Message,Resp extends com.google.protobuf.Message> - Returns:
- the minimum version of the protocol this instance supports
-