Package com.oracle.coherence.grpc.proxy
Class NamedCacheServiceGrpcImpl
- java.lang.Object
-
- com.oracle.coherence.grpc.NamedCacheServiceGrpc.NamedCacheServiceImplBase
-
- com.oracle.coherence.grpc.proxy.NamedCacheServiceGrpcImpl
-
- All Implemented Interfaces:
NamedCacheServiceGrpc.AsyncService,BindableGrpcProxyService,GrpcProxyService,io.grpc.BindableService
public class NamedCacheServiceGrpcImpl extends NamedCacheServiceGrpc.NamedCacheServiceImplBase implements BindableGrpcProxyService
A plain gRPC implementation of NamedCache service.- Author:
- Jonathan Knight 2020.09.21
-
-
Constructor Summary
Constructors Constructor Description NamedCacheServiceGrpcImpl()Create aNamedCacheServiceGrpcImplthat wraps a default implementation ofNamedCacheService.NamedCacheServiceGrpcImpl(NamedCacheService service)Create aNamedCacheServiceGrpcImplwith default configuration.NamedCacheServiceGrpcImpl(NamedCacheService.Dependencies deps)Create aNamedCacheServiceGrpcImplthat wraps a default implementation ofNamedCacheService.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidaddIndex(AddIndexRequest request, io.grpc.stub.StreamObserver<com.google.protobuf.Empty> observer)voidaggregate(AggregateRequest request, io.grpc.stub.StreamObserver<com.google.protobuf.BytesValue> observer)voidclear(ClearRequest request, io.grpc.stub.StreamObserver<com.google.protobuf.Empty> observer)voidcontainsEntry(ContainsEntryRequest request, io.grpc.stub.StreamObserver<com.google.protobuf.BoolValue> observer)voidcontainsKey(ContainsKeyRequest request, io.grpc.stub.StreamObserver<com.google.protobuf.BoolValue> observer)voidcontainsValue(ContainsValueRequest request, io.grpc.stub.StreamObserver<com.google.protobuf.BoolValue> observer)voiddestroy(DestroyRequest request, io.grpc.stub.StreamObserver<com.google.protobuf.Empty> observer)voidentrySet(EntrySetRequest request, io.grpc.stub.StreamObserver<Entry> observer)io.grpc.stub.StreamObserver<MapListenerRequest>events(io.grpc.stub.StreamObserver<MapListenerResponse> observer)voidget(GetRequest request, io.grpc.stub.StreamObserver<OptionalValue> observer)voidgetAll(GetAllRequest request, io.grpc.stub.StreamObserver<Entry> observer)GrpcProxyMetricsgetMetrics()Obtain the gRPC metrics instance for this service.voidinvoke(InvokeRequest request, io.grpc.stub.StreamObserver<com.google.protobuf.BytesValue> observer)voidinvokeAll(InvokeAllRequest request, io.grpc.stub.StreamObserver<Entry> observer)voidisEmpty(IsEmptyRequest request, io.grpc.stub.StreamObserver<com.google.protobuf.BoolValue> observer)voidisReady(IsReadyRequest request, io.grpc.stub.StreamObserver<com.google.protobuf.BoolValue> observer)voidkeySet(KeySetRequest request, io.grpc.stub.StreamObserver<com.google.protobuf.BytesValue> observer)voidnextEntrySetPage(PageRequest request, io.grpc.stub.StreamObserver<EntryResult> observer)voidnextKeySetPage(PageRequest request, io.grpc.stub.StreamObserver<com.google.protobuf.BytesValue> observer)voidput(PutRequest request, io.grpc.stub.StreamObserver<com.google.protobuf.BytesValue> observer)voidputAll(PutAllRequest request, io.grpc.stub.StreamObserver<com.google.protobuf.Empty> observer)voidputIfAbsent(PutIfAbsentRequest request, io.grpc.stub.StreamObserver<com.google.protobuf.BytesValue> observer)voidremove(RemoveRequest request, io.grpc.stub.StreamObserver<com.google.protobuf.BytesValue> observer)voidremoveIndex(RemoveIndexRequest request, io.grpc.stub.StreamObserver<com.google.protobuf.Empty> observer)voidremoveMapping(RemoveMappingRequest request, io.grpc.stub.StreamObserver<com.google.protobuf.BoolValue> observer)voidreplace(ReplaceRequest request, io.grpc.stub.StreamObserver<com.google.protobuf.BytesValue> observer)voidreplaceMapping(ReplaceMappingRequest request, io.grpc.stub.StreamObserver<com.google.protobuf.BoolValue> observer)voidsize(SizeRequest request, io.grpc.stub.StreamObserver<com.google.protobuf.Int32Value> observer)voidtruncate(TruncateRequest request, io.grpc.stub.StreamObserver<com.google.protobuf.Empty> observer)voidvalues(ValuesRequest request, io.grpc.stub.StreamObserver<com.google.protobuf.BytesValue> observer)-
Methods inherited from class com.oracle.coherence.grpc.NamedCacheServiceGrpc.NamedCacheServiceImplBase
bindService
-
-
-
-
Constructor Detail
-
NamedCacheServiceGrpcImpl
public NamedCacheServiceGrpcImpl()
Create aNamedCacheServiceGrpcImplthat wraps a default implementation ofNamedCacheService.
-
NamedCacheServiceGrpcImpl
public NamedCacheServiceGrpcImpl(NamedCacheService.Dependencies deps)
Create aNamedCacheServiceGrpcImplthat wraps a default implementation ofNamedCacheService.- Parameters:
deps- theNamedCacheService.Dependenciesto use
-
NamedCacheServiceGrpcImpl
public NamedCacheServiceGrpcImpl(NamedCacheService service)
Create aNamedCacheServiceGrpcImplwith default configuration.- Parameters:
service- theNamedCacheServiceto use
-
-
Method Detail
-
getMetrics
public GrpcProxyMetrics getMetrics()
Description copied from interface:GrpcProxyServiceObtain the gRPC metrics instance for this service.- Specified by:
getMetricsin interfaceGrpcProxyService- Returns:
- the gRPC metrics instance for this service
-
addIndex
public void addIndex(AddIndexRequest request, io.grpc.stub.StreamObserver<com.google.protobuf.Empty> observer)
- Specified by:
addIndexin interfaceNamedCacheServiceGrpc.AsyncService
-
aggregate
public void aggregate(AggregateRequest request, io.grpc.stub.StreamObserver<com.google.protobuf.BytesValue> observer)
- Specified by:
aggregatein interfaceNamedCacheServiceGrpc.AsyncService
-
clear
public void clear(ClearRequest request, io.grpc.stub.StreamObserver<com.google.protobuf.Empty> observer)
- Specified by:
clearin interfaceNamedCacheServiceGrpc.AsyncService
-
containsEntry
public void containsEntry(ContainsEntryRequest request, io.grpc.stub.StreamObserver<com.google.protobuf.BoolValue> observer)
- Specified by:
containsEntryin interfaceNamedCacheServiceGrpc.AsyncService
-
containsKey
public void containsKey(ContainsKeyRequest request, io.grpc.stub.StreamObserver<com.google.protobuf.BoolValue> observer)
- Specified by:
containsKeyin interfaceNamedCacheServiceGrpc.AsyncService
-
containsValue
public void containsValue(ContainsValueRequest request, io.grpc.stub.StreamObserver<com.google.protobuf.BoolValue> observer)
- Specified by:
containsValuein interfaceNamedCacheServiceGrpc.AsyncService
-
destroy
public void destroy(DestroyRequest request, io.grpc.stub.StreamObserver<com.google.protobuf.Empty> observer)
- Specified by:
destroyin interfaceNamedCacheServiceGrpc.AsyncService
-
entrySet
public void entrySet(EntrySetRequest request, io.grpc.stub.StreamObserver<Entry> observer)
- Specified by:
entrySetin interfaceNamedCacheServiceGrpc.AsyncService
-
events
public io.grpc.stub.StreamObserver<MapListenerRequest> events(io.grpc.stub.StreamObserver<MapListenerResponse> observer)
- Specified by:
eventsin interfaceNamedCacheServiceGrpc.AsyncService
-
get
public void get(GetRequest request, io.grpc.stub.StreamObserver<OptionalValue> observer)
- Specified by:
getin interfaceNamedCacheServiceGrpc.AsyncService
-
getAll
public void getAll(GetAllRequest request, io.grpc.stub.StreamObserver<Entry> observer)
- Specified by:
getAllin interfaceNamedCacheServiceGrpc.AsyncService
-
invoke
public void invoke(InvokeRequest request, io.grpc.stub.StreamObserver<com.google.protobuf.BytesValue> observer)
- Specified by:
invokein interfaceNamedCacheServiceGrpc.AsyncService
-
invokeAll
public void invokeAll(InvokeAllRequest request, io.grpc.stub.StreamObserver<Entry> observer)
- Specified by:
invokeAllin interfaceNamedCacheServiceGrpc.AsyncService
-
isEmpty
public void isEmpty(IsEmptyRequest request, io.grpc.stub.StreamObserver<com.google.protobuf.BoolValue> observer)
- Specified by:
isEmptyin interfaceNamedCacheServiceGrpc.AsyncService
-
isReady
public void isReady(IsReadyRequest request, io.grpc.stub.StreamObserver<com.google.protobuf.BoolValue> observer)
- Specified by:
isReadyin interfaceNamedCacheServiceGrpc.AsyncService
-
keySet
public void keySet(KeySetRequest request, io.grpc.stub.StreamObserver<com.google.protobuf.BytesValue> observer)
- Specified by:
keySetin interfaceNamedCacheServiceGrpc.AsyncService
-
nextEntrySetPage
public void nextEntrySetPage(PageRequest request, io.grpc.stub.StreamObserver<EntryResult> observer)
- Specified by:
nextEntrySetPagein interfaceNamedCacheServiceGrpc.AsyncService
-
nextKeySetPage
public void nextKeySetPage(PageRequest request, io.grpc.stub.StreamObserver<com.google.protobuf.BytesValue> observer)
- Specified by:
nextKeySetPagein interfaceNamedCacheServiceGrpc.AsyncService
-
put
public void put(PutRequest request, io.grpc.stub.StreamObserver<com.google.protobuf.BytesValue> observer)
- Specified by:
putin interfaceNamedCacheServiceGrpc.AsyncService
-
putAll
public void putAll(PutAllRequest request, io.grpc.stub.StreamObserver<com.google.protobuf.Empty> observer)
- Specified by:
putAllin interfaceNamedCacheServiceGrpc.AsyncService
-
putIfAbsent
public void putIfAbsent(PutIfAbsentRequest request, io.grpc.stub.StreamObserver<com.google.protobuf.BytesValue> observer)
- Specified by:
putIfAbsentin interfaceNamedCacheServiceGrpc.AsyncService
-
remove
public void remove(RemoveRequest request, io.grpc.stub.StreamObserver<com.google.protobuf.BytesValue> observer)
- Specified by:
removein interfaceNamedCacheServiceGrpc.AsyncService
-
removeIndex
public void removeIndex(RemoveIndexRequest request, io.grpc.stub.StreamObserver<com.google.protobuf.Empty> observer)
- Specified by:
removeIndexin interfaceNamedCacheServiceGrpc.AsyncService
-
removeMapping
public void removeMapping(RemoveMappingRequest request, io.grpc.stub.StreamObserver<com.google.protobuf.BoolValue> observer)
- Specified by:
removeMappingin interfaceNamedCacheServiceGrpc.AsyncService
-
replace
public void replace(ReplaceRequest request, io.grpc.stub.StreamObserver<com.google.protobuf.BytesValue> observer)
- Specified by:
replacein interfaceNamedCacheServiceGrpc.AsyncService
-
replaceMapping
public void replaceMapping(ReplaceMappingRequest request, io.grpc.stub.StreamObserver<com.google.protobuf.BoolValue> observer)
- Specified by:
replaceMappingin interfaceNamedCacheServiceGrpc.AsyncService
-
size
public void size(SizeRequest request, io.grpc.stub.StreamObserver<com.google.protobuf.Int32Value> observer)
- Specified by:
sizein interfaceNamedCacheServiceGrpc.AsyncService
-
truncate
public void truncate(TruncateRequest request, io.grpc.stub.StreamObserver<com.google.protobuf.Empty> observer)
- Specified by:
truncatein interfaceNamedCacheServiceGrpc.AsyncService
-
values
public void values(ValuesRequest request, io.grpc.stub.StreamObserver<com.google.protobuf.BytesValue> observer)
- Specified by:
valuesin interfaceNamedCacheServiceGrpc.AsyncService
-
-