Class NamedCacheProxyProtocol
java.lang.Object
com.oracle.coherence.grpc.proxy.common.BaseProxyProtocol<com.oracle.coherence.grpc.messages.cache.v1.NamedCacheRequest,com.oracle.coherence.grpc.messages.cache.v1.NamedCacheResponse>
com.oracle.coherence.grpc.proxy.common.cache.NamedCacheProxyProtocol
- All Implemented Interfaces:
GrpcServiceProtocol<com.oracle.coherence.grpc.messages.cache.v1.NamedCacheRequest,,com.oracle.coherence.grpc.messages.cache.v1.NamedCacheResponse> NamedCacheProtocol<com.oracle.coherence.grpc.messages.cache.v1.NamedCacheRequest,com.oracle.coherence.grpc.messages.cache.v1.NamedCacheResponse>
public class NamedCacheProxyProtocol
extends BaseProxyProtocol<com.oracle.coherence.grpc.messages.cache.v1.NamedCacheRequest,com.oracle.coherence.grpc.messages.cache.v1.NamedCacheResponse>
implements NamedCacheProtocol<com.oracle.coherence.grpc.messages.cache.v1.NamedCacheRequest,com.oracle.coherence.grpc.messages.cache.v1.NamedCacheResponse>
The server side
NamedCacheProtocol implementation.-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionprotected classANamedCacheDeactivationListenerto receive truncate and destroy events for the cache.protected classA stub of an ExtendChannelused to handle event messages.protected static classA stub for aConnectionManager.protected static classA stub for aConnection. -
Field Summary
FieldsModifier and TypeFieldDescriptionprotected final LongArray<com.tangosol.coherence.component.net.extend.proxy.NamedCacheProxy> An array ofNamedCacheProxyinstances indexed by the cache identifier.Fields inherited from class com.oracle.coherence.grpc.proxy.common.BaseProxyProtocol
f_lock, m_ccf, m_connection, m_destroyedIds, m_eventObserver, m_proxy, m_serializer, m_serviceFields inherited from interface com.oracle.coherence.grpc.GrpcServiceProtocol
PRIORITY_NORMALFields inherited from interface com.oracle.coherence.grpc.NamedCacheProtocol
PROTOCOL_NAME, SUPPORTED_VERSION, VERSION -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected Optional<AsyncNamedCache<Binary, Binary>> async(com.tangosol.coherence.component.net.extend.proxy.NamedCacheProxy proxy) Obtain an async version of aNamedCacheProxy.voidclose()Close this protocol.protected com.tangosol.coherence.component.net.extend.messageFactory.NamedCacheFactory.ListenerFilterRequestcreateListenerFilterRequest(com.tangosol.coherence.component.net.extend.proxy.NamedCacheProxy proxy, com.oracle.coherence.grpc.messages.cache.v1.MapListenerRequest request) protected com.tangosol.coherence.component.net.extend.messageFactory.NamedCacheFactory.ListenerKeyRequestcreateListenerKeyRequest(com.tangosol.coherence.component.net.extend.proxy.NamedCacheProxy proxy, com.oracle.coherence.grpc.messages.cache.v1.MapListenerRequest request) protected com.google.protobuf.AnygetMessage(com.oracle.coherence.grpc.messages.cache.v1.NamedCacheRequest request) Class<com.oracle.coherence.grpc.messages.cache.v1.NamedCacheRequest> Return the type of the request messages.Class<com.oracle.coherence.grpc.messages.cache.v1.NamedCacheResponse> Return the type of the response messages.Return theSerializerto use to serialize response data.protected voidinitInternal(GrpcService service, com.oracle.coherence.grpc.messages.proxy.v1.InitRequest request, int nVersion, UUID clientUUID) protected voidonAggregate(com.tangosol.coherence.component.net.extend.proxy.NamedCacheProxy proxy, com.oracle.coherence.grpc.messages.cache.v1.NamedCacheRequest request, io.grpc.stub.StreamObserver<com.oracle.coherence.grpc.messages.cache.v1.NamedCacheResponse> observer) protected voidonClear(com.tangosol.coherence.component.net.extend.proxy.NamedCacheProxy proxy, io.grpc.stub.StreamObserver<com.oracle.coherence.grpc.messages.cache.v1.NamedCacheResponse> observer) protected voidonContainsEntry(com.tangosol.coherence.component.net.extend.proxy.NamedCacheProxy proxy, com.oracle.coherence.grpc.messages.cache.v1.NamedCacheRequest request, io.grpc.stub.StreamObserver<com.oracle.coherence.grpc.messages.cache.v1.NamedCacheResponse> observer) protected voidonContainsKey(com.tangosol.coherence.component.net.extend.proxy.NamedCacheProxy proxy, com.oracle.coherence.grpc.messages.cache.v1.NamedCacheRequest request, io.grpc.stub.StreamObserver<com.oracle.coherence.grpc.messages.cache.v1.NamedCacheResponse> observer) protected voidonContainsValue(com.tangosol.coherence.component.net.extend.proxy.NamedCacheProxy proxy, com.oracle.coherence.grpc.messages.cache.v1.NamedCacheRequest request, io.grpc.stub.StreamObserver<com.oracle.coherence.grpc.messages.cache.v1.NamedCacheResponse> observer) protected voidonDestroyCache(int nId, io.grpc.stub.StreamObserver<com.oracle.coherence.grpc.messages.cache.v1.NamedCacheResponse> observer) protected voidonEnsureCache(com.oracle.coherence.grpc.messages.cache.v1.EnsureCacheRequest request, io.grpc.stub.StreamObserver<com.oracle.coherence.grpc.messages.cache.v1.NamedCacheResponse> observer) protected voidonGet(com.tangosol.coherence.component.net.extend.proxy.NamedCacheProxy proxy, com.oracle.coherence.grpc.messages.cache.v1.NamedCacheRequest request, io.grpc.stub.StreamObserver<com.oracle.coherence.grpc.messages.cache.v1.NamedCacheResponse> observer) protected voidonGetAll(com.tangosol.coherence.component.net.extend.proxy.NamedCacheProxy proxy, com.oracle.coherence.grpc.messages.cache.v1.NamedCacheRequest request, io.grpc.stub.StreamObserver<com.oracle.coherence.grpc.messages.cache.v1.NamedCacheResponse> observer) protected voidonIndex(com.tangosol.coherence.component.net.extend.proxy.NamedCacheProxy proxy, com.oracle.coherence.grpc.messages.cache.v1.NamedCacheRequest request, io.grpc.stub.StreamObserver<com.oracle.coherence.grpc.messages.cache.v1.NamedCacheResponse> observer) protected voidonInvoke(com.tangosol.coherence.component.net.extend.proxy.NamedCacheProxy proxy, com.oracle.coherence.grpc.messages.cache.v1.NamedCacheRequest request, io.grpc.stub.StreamObserver<com.oracle.coherence.grpc.messages.cache.v1.NamedCacheResponse> observer) protected voidonIsEmpty(com.tangosol.coherence.component.net.extend.proxy.NamedCacheProxy proxy, io.grpc.stub.StreamObserver<com.oracle.coherence.grpc.messages.cache.v1.NamedCacheResponse> observer) protected voidonIsReady(com.tangosol.coherence.component.net.extend.proxy.NamedCacheProxy proxy, io.grpc.stub.StreamObserver<com.oracle.coherence.grpc.messages.cache.v1.NamedCacheResponse> observer) protected voidonMapListener(com.tangosol.coherence.component.net.extend.proxy.NamedCacheProxy proxy, com.oracle.coherence.grpc.messages.cache.v1.NamedCacheRequest request, io.grpc.stub.StreamObserver<com.oracle.coherence.grpc.messages.cache.v1.NamedCacheResponse> observer) protected voidonPageOfEntries(com.tangosol.coherence.component.net.extend.proxy.NamedCacheProxy proxy, com.oracle.coherence.grpc.messages.cache.v1.NamedCacheRequest request, io.grpc.stub.StreamObserver<com.oracle.coherence.grpc.messages.cache.v1.NamedCacheResponse> observer) protected voidonPageOfKeys(com.tangosol.coherence.component.net.extend.proxy.NamedCacheProxy proxy, com.oracle.coherence.grpc.messages.cache.v1.NamedCacheRequest request, io.grpc.stub.StreamObserver<com.oracle.coherence.grpc.messages.cache.v1.NamedCacheResponse> observer) protected voidonPut(com.tangosol.coherence.component.net.extend.proxy.NamedCacheProxy proxy, com.oracle.coherence.grpc.messages.cache.v1.NamedCacheRequest request, io.grpc.stub.StreamObserver<com.oracle.coherence.grpc.messages.cache.v1.NamedCacheResponse> observer) protected voidonPutAll(com.tangosol.coherence.component.net.extend.proxy.NamedCacheProxy proxy, com.oracle.coherence.grpc.messages.cache.v1.NamedCacheRequest request, io.grpc.stub.StreamObserver<com.oracle.coherence.grpc.messages.cache.v1.NamedCacheResponse> observer) protected voidonPutIfAbsent(com.tangosol.coherence.component.net.extend.proxy.NamedCacheProxy proxy, com.oracle.coherence.grpc.messages.cache.v1.NamedCacheRequest request, io.grpc.stub.StreamObserver<com.oracle.coherence.grpc.messages.cache.v1.NamedCacheResponse> observer) protected voidonQueryEntrySet(com.tangosol.coherence.component.net.extend.proxy.NamedCacheProxy proxy, com.oracle.coherence.grpc.messages.cache.v1.NamedCacheRequest request, io.grpc.stub.StreamObserver<com.oracle.coherence.grpc.messages.cache.v1.NamedCacheResponse> observer) protected voidonQueryKeySet(com.tangosol.coherence.component.net.extend.proxy.NamedCacheProxy proxy, com.oracle.coherence.grpc.messages.cache.v1.NamedCacheRequest request, io.grpc.stub.StreamObserver<com.oracle.coherence.grpc.messages.cache.v1.NamedCacheResponse> observer) protected voidonQueryValues(com.tangosol.coherence.component.net.extend.proxy.NamedCacheProxy proxy, com.oracle.coherence.grpc.messages.cache.v1.NamedCacheRequest request, io.grpc.stub.StreamObserver<com.oracle.coherence.grpc.messages.cache.v1.NamedCacheResponse> observer) protected voidonRemove(com.tangosol.coherence.component.net.extend.proxy.NamedCacheProxy proxy, com.oracle.coherence.grpc.messages.cache.v1.NamedCacheRequest request, io.grpc.stub.StreamObserver<com.oracle.coherence.grpc.messages.cache.v1.NamedCacheResponse> observer) protected voidonRemoveMapping(com.tangosol.coherence.component.net.extend.proxy.NamedCacheProxy proxy, com.oracle.coherence.grpc.messages.cache.v1.NamedCacheRequest request, io.grpc.stub.StreamObserver<com.oracle.coherence.grpc.messages.cache.v1.NamedCacheResponse> observer) protected voidonReplace(com.tangosol.coherence.component.net.extend.proxy.NamedCacheProxy proxy, com.oracle.coherence.grpc.messages.cache.v1.NamedCacheRequest request, io.grpc.stub.StreamObserver<com.oracle.coherence.grpc.messages.cache.v1.NamedCacheResponse> observer) protected voidonReplaceMapping(com.tangosol.coherence.component.net.extend.proxy.NamedCacheProxy proxy, com.oracle.coherence.grpc.messages.cache.v1.NamedCacheRequest request, io.grpc.stub.StreamObserver<com.oracle.coherence.grpc.messages.cache.v1.NamedCacheResponse> observer) protected voidonRequestInternal(com.oracle.coherence.grpc.messages.cache.v1.NamedCacheRequest request, io.grpc.stub.StreamObserver<com.oracle.coherence.grpc.messages.cache.v1.NamedCacheResponse> observer) protected voidonSize(com.tangosol.coherence.component.net.extend.proxy.NamedCacheProxy proxy, io.grpc.stub.StreamObserver<com.oracle.coherence.grpc.messages.cache.v1.NamedCacheResponse> observer) protected voidonTruncate(com.tangosol.coherence.component.net.extend.proxy.NamedCacheProxy proxy, io.grpc.stub.StreamObserver<com.oracle.coherence.grpc.messages.cache.v1.NamedCacheResponse> observer) protected com.oracle.coherence.grpc.messages.cache.v1.NamedCacheResponse.Builderresponse(int cacheId) Create aNamedCacheResponse.Builderwith the cache identifier set to the specified value.protected com.oracle.coherence.grpc.messages.cache.v1.NamedCacheResponseresponse(int id, com.google.protobuf.Any any) protected com.oracle.coherence.grpc.messages.cache.v1.NamedCacheResponse.Builderresponse(com.tangosol.coherence.component.net.extend.proxy.NamedCacheProxy proxy) Create aNamedCacheResponse.Builderwith the cache identifier set to the value of the cache identifier of a specifiedNamedCacheProxy.protected BinaryunpackBinary(com.oracle.coherence.grpc.messages.cache.v1.NamedCacheRequest request) Methods inherited from class com.oracle.coherence.grpc.proxy.common.BaseProxyProtocol
complete, complete, complete, complete, complete, complete, completeKeyValue, completeMapStream, completeMapStream, completeSetStream, completeSetStream, fromBinary, fromByteString, fromByteString, init, onRequest, unpackMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface com.oracle.coherence.grpc.GrpcServiceProtocol
getPriority, init, onError, onRequestMethods inherited from interface com.oracle.coherence.grpc.NamedCacheProtocol
getProtocol, getSupportedVersion, getVersion
-
Field Details
-
m_aProxy
protected final LongArray<com.tangosol.coherence.component.net.extend.proxy.NamedCacheProxy> m_aProxyAn array ofNamedCacheProxyinstances indexed by the cache identifier.
-
-
Constructor Details
-
NamedCacheProxyProtocol
public NamedCacheProxyProtocol()
-
-
Method Details
-
getRequestType
Description copied from interface:GrpcServiceProtocolReturn the type of the request messages.- Specified by:
getRequestTypein interfaceGrpcServiceProtocol<com.oracle.coherence.grpc.messages.cache.v1.NamedCacheRequest,com.oracle.coherence.grpc.messages.cache.v1.NamedCacheResponse> - Returns:
- the type of the request messages
-
getResponseType
Description copied from interface:GrpcServiceProtocolReturn the type of the response messages.- Specified by:
getResponseTypein interfaceGrpcServiceProtocol<com.oracle.coherence.grpc.messages.cache.v1.NamedCacheRequest,com.oracle.coherence.grpc.messages.cache.v1.NamedCacheResponse> - Returns:
- the type of the response messages
-
getSerializer
Description copied from interface:GrpcServiceProtocolReturn theSerializerto use to serialize response data.- Specified by:
getSerializerin interfaceGrpcServiceProtocol<com.oracle.coherence.grpc.messages.cache.v1.NamedCacheRequest,com.oracle.coherence.grpc.messages.cache.v1.NamedCacheResponse> - Overrides:
getSerializerin classBaseProxyProtocol<com.oracle.coherence.grpc.messages.cache.v1.NamedCacheRequest,com.oracle.coherence.grpc.messages.cache.v1.NamedCacheResponse> - Returns:
- the
Serializerto use to serialize response data
-
close
public void close()Description copied from interface:GrpcServiceProtocolClose this protocol.- Specified by:
closein interfaceGrpcServiceProtocol<com.oracle.coherence.grpc.messages.cache.v1.NamedCacheRequest,com.oracle.coherence.grpc.messages.cache.v1.NamedCacheResponse> - Overrides:
closein classBaseProxyProtocol<com.oracle.coherence.grpc.messages.cache.v1.NamedCacheRequest,com.oracle.coherence.grpc.messages.cache.v1.NamedCacheResponse>
-
initInternal
protected void initInternal(GrpcService service, com.oracle.coherence.grpc.messages.proxy.v1.InitRequest request, int nVersion, UUID clientUUID) - Specified by:
initInternalin classBaseProxyProtocol<com.oracle.coherence.grpc.messages.cache.v1.NamedCacheRequest,com.oracle.coherence.grpc.messages.cache.v1.NamedCacheResponse>
-
response
protected com.oracle.coherence.grpc.messages.cache.v1.NamedCacheResponse response(int id, com.google.protobuf.Any any) - Specified by:
responsein classBaseProxyProtocol<com.oracle.coherence.grpc.messages.cache.v1.NamedCacheRequest,com.oracle.coherence.grpc.messages.cache.v1.NamedCacheResponse>
-
getMessage
protected com.google.protobuf.Any getMessage(com.oracle.coherence.grpc.messages.cache.v1.NamedCacheRequest request) - Specified by:
getMessagein classBaseProxyProtocol<com.oracle.coherence.grpc.messages.cache.v1.NamedCacheRequest,com.oracle.coherence.grpc.messages.cache.v1.NamedCacheResponse>
-
onRequestInternal
protected void onRequestInternal(com.oracle.coherence.grpc.messages.cache.v1.NamedCacheRequest request, io.grpc.stub.StreamObserver<com.oracle.coherence.grpc.messages.cache.v1.NamedCacheResponse> observer) - Specified by:
onRequestInternalin classBaseProxyProtocol<com.oracle.coherence.grpc.messages.cache.v1.NamedCacheRequest,com.oracle.coherence.grpc.messages.cache.v1.NamedCacheResponse>
-
onAggregate
protected void onAggregate(com.tangosol.coherence.component.net.extend.proxy.NamedCacheProxy proxy, com.oracle.coherence.grpc.messages.cache.v1.NamedCacheRequest request, io.grpc.stub.StreamObserver<com.oracle.coherence.grpc.messages.cache.v1.NamedCacheResponse> observer) -
onClear
protected void onClear(com.tangosol.coherence.component.net.extend.proxy.NamedCacheProxy proxy, io.grpc.stub.StreamObserver<com.oracle.coherence.grpc.messages.cache.v1.NamedCacheResponse> observer) -
onContainsEntry
protected void onContainsEntry(com.tangosol.coherence.component.net.extend.proxy.NamedCacheProxy proxy, com.oracle.coherence.grpc.messages.cache.v1.NamedCacheRequest request, io.grpc.stub.StreamObserver<com.oracle.coherence.grpc.messages.cache.v1.NamedCacheResponse> observer) -
onContainsKey
protected void onContainsKey(com.tangosol.coherence.component.net.extend.proxy.NamedCacheProxy proxy, com.oracle.coherence.grpc.messages.cache.v1.NamedCacheRequest request, io.grpc.stub.StreamObserver<com.oracle.coherence.grpc.messages.cache.v1.NamedCacheResponse> observer) -
onContainsValue
protected void onContainsValue(com.tangosol.coherence.component.net.extend.proxy.NamedCacheProxy proxy, com.oracle.coherence.grpc.messages.cache.v1.NamedCacheRequest request, io.grpc.stub.StreamObserver<com.oracle.coherence.grpc.messages.cache.v1.NamedCacheResponse> observer) -
onDestroyCache
protected void onDestroyCache(int nId, io.grpc.stub.StreamObserver<com.oracle.coherence.grpc.messages.cache.v1.NamedCacheResponse> observer) -
onEnsureCache
protected void onEnsureCache(com.oracle.coherence.grpc.messages.cache.v1.EnsureCacheRequest request, io.grpc.stub.StreamObserver<com.oracle.coherence.grpc.messages.cache.v1.NamedCacheResponse> observer) -
onGet
protected void onGet(com.tangosol.coherence.component.net.extend.proxy.NamedCacheProxy proxy, com.oracle.coherence.grpc.messages.cache.v1.NamedCacheRequest request, io.grpc.stub.StreamObserver<com.oracle.coherence.grpc.messages.cache.v1.NamedCacheResponse> observer) -
onGetAll
protected void onGetAll(com.tangosol.coherence.component.net.extend.proxy.NamedCacheProxy proxy, com.oracle.coherence.grpc.messages.cache.v1.NamedCacheRequest request, io.grpc.stub.StreamObserver<com.oracle.coherence.grpc.messages.cache.v1.NamedCacheResponse> observer) -
onIndex
protected void onIndex(com.tangosol.coherence.component.net.extend.proxy.NamedCacheProxy proxy, com.oracle.coherence.grpc.messages.cache.v1.NamedCacheRequest request, io.grpc.stub.StreamObserver<com.oracle.coherence.grpc.messages.cache.v1.NamedCacheResponse> observer) -
onInvoke
protected void onInvoke(com.tangosol.coherence.component.net.extend.proxy.NamedCacheProxy proxy, com.oracle.coherence.grpc.messages.cache.v1.NamedCacheRequest request, io.grpc.stub.StreamObserver<com.oracle.coherence.grpc.messages.cache.v1.NamedCacheResponse> observer) -
onIsEmpty
protected void onIsEmpty(com.tangosol.coherence.component.net.extend.proxy.NamedCacheProxy proxy, io.grpc.stub.StreamObserver<com.oracle.coherence.grpc.messages.cache.v1.NamedCacheResponse> observer) -
onIsReady
protected void onIsReady(com.tangosol.coherence.component.net.extend.proxy.NamedCacheProxy proxy, io.grpc.stub.StreamObserver<com.oracle.coherence.grpc.messages.cache.v1.NamedCacheResponse> observer) -
onMapListener
protected void onMapListener(com.tangosol.coherence.component.net.extend.proxy.NamedCacheProxy proxy, com.oracle.coherence.grpc.messages.cache.v1.NamedCacheRequest request, io.grpc.stub.StreamObserver<com.oracle.coherence.grpc.messages.cache.v1.NamedCacheResponse> observer) -
createListenerKeyRequest
protected com.tangosol.coherence.component.net.extend.messageFactory.NamedCacheFactory.ListenerKeyRequest createListenerKeyRequest(com.tangosol.coherence.component.net.extend.proxy.NamedCacheProxy proxy, com.oracle.coherence.grpc.messages.cache.v1.MapListenerRequest request) -
createListenerFilterRequest
protected com.tangosol.coherence.component.net.extend.messageFactory.NamedCacheFactory.ListenerFilterRequest createListenerFilterRequest(com.tangosol.coherence.component.net.extend.proxy.NamedCacheProxy proxy, com.oracle.coherence.grpc.messages.cache.v1.MapListenerRequest request) -
onPageOfEntries
protected void onPageOfEntries(com.tangosol.coherence.component.net.extend.proxy.NamedCacheProxy proxy, com.oracle.coherence.grpc.messages.cache.v1.NamedCacheRequest request, io.grpc.stub.StreamObserver<com.oracle.coherence.grpc.messages.cache.v1.NamedCacheResponse> observer) -
onPageOfKeys
protected void onPageOfKeys(com.tangosol.coherence.component.net.extend.proxy.NamedCacheProxy proxy, com.oracle.coherence.grpc.messages.cache.v1.NamedCacheRequest request, io.grpc.stub.StreamObserver<com.oracle.coherence.grpc.messages.cache.v1.NamedCacheResponse> observer) -
onPut
protected void onPut(com.tangosol.coherence.component.net.extend.proxy.NamedCacheProxy proxy, com.oracle.coherence.grpc.messages.cache.v1.NamedCacheRequest request, io.grpc.stub.StreamObserver<com.oracle.coherence.grpc.messages.cache.v1.NamedCacheResponse> observer) -
onPutAll
protected void onPutAll(com.tangosol.coherence.component.net.extend.proxy.NamedCacheProxy proxy, com.oracle.coherence.grpc.messages.cache.v1.NamedCacheRequest request, io.grpc.stub.StreamObserver<com.oracle.coherence.grpc.messages.cache.v1.NamedCacheResponse> observer) -
onPutIfAbsent
protected void onPutIfAbsent(com.tangosol.coherence.component.net.extend.proxy.NamedCacheProxy proxy, com.oracle.coherence.grpc.messages.cache.v1.NamedCacheRequest request, io.grpc.stub.StreamObserver<com.oracle.coherence.grpc.messages.cache.v1.NamedCacheResponse> observer) -
onQueryEntrySet
protected void onQueryEntrySet(com.tangosol.coherence.component.net.extend.proxy.NamedCacheProxy proxy, com.oracle.coherence.grpc.messages.cache.v1.NamedCacheRequest request, io.grpc.stub.StreamObserver<com.oracle.coherence.grpc.messages.cache.v1.NamedCacheResponse> observer) -
onQueryKeySet
protected void onQueryKeySet(com.tangosol.coherence.component.net.extend.proxy.NamedCacheProxy proxy, com.oracle.coherence.grpc.messages.cache.v1.NamedCacheRequest request, io.grpc.stub.StreamObserver<com.oracle.coherence.grpc.messages.cache.v1.NamedCacheResponse> observer) -
onQueryValues
protected void onQueryValues(com.tangosol.coherence.component.net.extend.proxy.NamedCacheProxy proxy, com.oracle.coherence.grpc.messages.cache.v1.NamedCacheRequest request, io.grpc.stub.StreamObserver<com.oracle.coherence.grpc.messages.cache.v1.NamedCacheResponse> observer) -
onRemove
protected void onRemove(com.tangosol.coherence.component.net.extend.proxy.NamedCacheProxy proxy, com.oracle.coherence.grpc.messages.cache.v1.NamedCacheRequest request, io.grpc.stub.StreamObserver<com.oracle.coherence.grpc.messages.cache.v1.NamedCacheResponse> observer) -
onRemoveMapping
protected void onRemoveMapping(com.tangosol.coherence.component.net.extend.proxy.NamedCacheProxy proxy, com.oracle.coherence.grpc.messages.cache.v1.NamedCacheRequest request, io.grpc.stub.StreamObserver<com.oracle.coherence.grpc.messages.cache.v1.NamedCacheResponse> observer) -
onReplace
protected void onReplace(com.tangosol.coherence.component.net.extend.proxy.NamedCacheProxy proxy, com.oracle.coherence.grpc.messages.cache.v1.NamedCacheRequest request, io.grpc.stub.StreamObserver<com.oracle.coherence.grpc.messages.cache.v1.NamedCacheResponse> observer) -
onReplaceMapping
protected void onReplaceMapping(com.tangosol.coherence.component.net.extend.proxy.NamedCacheProxy proxy, com.oracle.coherence.grpc.messages.cache.v1.NamedCacheRequest request, io.grpc.stub.StreamObserver<com.oracle.coherence.grpc.messages.cache.v1.NamedCacheResponse> observer) -
onSize
protected void onSize(com.tangosol.coherence.component.net.extend.proxy.NamedCacheProxy proxy, io.grpc.stub.StreamObserver<com.oracle.coherence.grpc.messages.cache.v1.NamedCacheResponse> observer) -
onTruncate
protected void onTruncate(com.tangosol.coherence.component.net.extend.proxy.NamedCacheProxy proxy, io.grpc.stub.StreamObserver<com.oracle.coherence.grpc.messages.cache.v1.NamedCacheResponse> observer) -
response
protected com.oracle.coherence.grpc.messages.cache.v1.NamedCacheResponse.Builder response(com.tangosol.coherence.component.net.extend.proxy.NamedCacheProxy proxy) Create aNamedCacheResponse.Builderwith the cache identifier set to the value of the cache identifier of a specifiedNamedCacheProxy.- Parameters:
proxy- theNamedCacheProxyto use to set the cache identifier- Returns:
- a
NamedCacheResponse.Builderwith the cache identifier set to theNamedCacheProxycache identifier
-
response
protected com.oracle.coherence.grpc.messages.cache.v1.NamedCacheResponse.Builder response(int cacheId) Create aNamedCacheResponse.Builderwith the cache identifier set to the specified value.- Parameters:
cacheId- the cache identifier- Returns:
- a
NamedCacheResponse.Builderwith the cache identifier set to the specified value
-
async
protected Optional<AsyncNamedCache<Binary,Binary>> async(com.tangosol.coherence.component.net.extend.proxy.NamedCacheProxy proxy) Obtain an async version of aNamedCacheProxy.- Parameters:
proxy- theNamedCacheProxyto get the async cache for- Returns:
- an
Optionalcontaining theAsyncNamedCacheor an emptyOptionalif the underlying cache does not support async behaviour.
-
unpackBinary
protected Binary unpackBinary(com.oracle.coherence.grpc.messages.cache.v1.NamedCacheRequest request) - Parameters:
request- theNamedCacheRequestto get theBytesValuefrom- Returns:
- the
BytesValuefrom aNamedCacheRequestconverted to aBinary
-