Package com.oracle.coherence.grpc
Class Requests
java.lang.Object
com.oracle.coherence.grpc.Requests
A factory to simplify creating proto-buffer requests.
- Since:
- 20.06
- Author:
- Jonathan Knight 2019.11.01
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final StringThe value used for thePROP_CREDENTIALSsystem property to indicate an insecure server.static final StringThe credentials to use to connect to a non-TLS enabled server.static final StringThe value used for thePROP_CREDENTIALSsystem property to indicate the server should use TLS.static final StringThe system property that sets the credentials type.static final StringThe system property that sets the location of the TLS CA file.static final StringThe system property that sets the location of the TLS cert file.static final StringThe system property that sets whether mutual TLS is enabled.static final StringThe system property that sets the location of the TLS key file.static final StringThe system property that sets the password for the TLS key file.static final StringThe system property that sets the URI of a file to read to obtain the password for the TLS key file. -
Method Summary
Modifier and TypeMethodDescriptionstatic com.oracle.coherence.grpc.MapListenerRequestaddFilterMapListener(String scope, String cacheName, String format, com.google.protobuf.ByteString filter, long filterId, boolean lite, boolean priming, com.google.protobuf.ByteString mapTrigger) Create aMapListenerRequestthat will subscribe toMapEventsfor all entries in a cache matching a filter.static com.oracle.coherence.grpc.AddIndexRequestCreate aAddIndexRequest.static com.oracle.coherence.grpc.AddIndexRequestaddIndex(String scope, String cacheName, String format, com.google.protobuf.ByteString extractor, boolean sorted) Create aAddIndexRequest.static com.oracle.coherence.grpc.AddIndexRequestaddIndex(String scope, String cacheName, String format, com.google.protobuf.ByteString extractor, boolean sorted, com.google.protobuf.ByteString comparator) Create aAddIndexRequest.static com.oracle.coherence.grpc.MapListenerRequestaddKeyMapListener(String scope, String cacheName, String format, com.google.protobuf.ByteString key, boolean lite, boolean priming, com.google.protobuf.ByteString mapTrigger) Create aMapListenerRequestthat will subscribe toMapEventsfor a single entry in a cache.static com.oracle.coherence.grpc.AggregateRequestaggregate(String scope, String cacheName, String format, com.google.protobuf.ByteString filter, com.google.protobuf.ByteString aggregator) Create aAggregateRequest.static com.oracle.coherence.grpc.AggregateRequestaggregate(String scope, String cacheName, String format, Iterable<com.google.protobuf.ByteString> keys, com.google.protobuf.ByteString aggregator) Create aAggregateRequest.static com.oracle.coherence.grpc.ClearRequestCreate aClearRequest.static com.oracle.coherence.grpc.ContainsEntryRequestcontainsEntry(String scope, String cacheName, String format, com.google.protobuf.ByteString key, com.google.protobuf.ByteString value) Create aContainsEntryRequest.static com.oracle.coherence.grpc.ContainsKeyRequestcontainsKey(String scope, String cacheName, String format, com.google.protobuf.ByteString key) Create aClearRequest.static com.oracle.coherence.grpc.ContainsValueRequestcontainsValue(String scope, String cacheName, String format, com.google.protobuf.ByteString value) Create aContainsValueRequest.static com.oracle.coherence.grpc.DestroyRequestCreate aDestroyRequest.static com.oracle.coherence.grpc.EntrySetRequestCreate anEntrySetRequest.static com.oracle.coherence.grpc.EntrySetRequestentrySet(String scope, String cacheName, String format, com.google.protobuf.ByteString filter, com.google.protobuf.ByteString comparator) Create anEntrySetRequest.static com.oracle.coherence.grpc.GetRequestCreate aGetRequest.static com.oracle.coherence.grpc.GetAllRequestgetAll(String scope, String cacheName, String format, Iterable<com.google.protobuf.ByteString> keys) Create aGetAllRequest.static com.oracle.coherence.grpc.MapListenerRequestinitListenerChannel(String scope, String cacheName, String format) Create aMapListenerRequestthat will initialise the bidirectional channel.static com.oracle.coherence.grpc.InvokeRequestinvoke(String scope, String cacheName, String format, com.google.protobuf.ByteString key, com.google.protobuf.ByteString processor) Create aInvokeRequest.static com.oracle.coherence.grpc.InvokeAllRequestinvokeAll(String scope, String cacheName, String format, com.google.protobuf.ByteString filter, com.google.protobuf.ByteString processor) Create aInvokeAllRequest.static com.oracle.coherence.grpc.InvokeAllRequestinvokeAll(String scope, String cacheName, String format, Iterable<com.google.protobuf.ByteString> keys, com.google.protobuf.ByteString processor) Create aInvokeAllRequest.static com.oracle.coherence.grpc.IsEmptyRequestCreate aIsEmptyRequest.static com.oracle.coherence.grpc.KeySetRequestCreate anKeySetRequest.static com.oracle.coherence.grpc.PageRequestCreate aPageRequest.static com.oracle.coherence.grpc.PutRequestput(String scope, String cacheName, String format, com.google.protobuf.ByteString key, com.google.protobuf.ByteString value) Create aPutRequest.static com.oracle.coherence.grpc.PutRequestput(String scope, String cacheName, String format, com.google.protobuf.ByteString key, com.google.protobuf.ByteString value, long ttl) Create aPutRequest.static com.oracle.coherence.grpc.PutAllRequestputAll(String scope, String cacheName, String format, Iterable<com.oracle.coherence.grpc.Entry> entries) Create aPutAllRequest.static com.oracle.coherence.grpc.PutIfAbsentRequestputIfAbsent(String scope, String cacheName, String format, com.google.protobuf.ByteString key, com.google.protobuf.ByteString value) Create aPutIfAbsentRequest.static com.oracle.coherence.grpc.IsReadyRequestCreate aClearRequest.static com.oracle.coherence.grpc.RemoveRequestCreate aRemoveRequest.static com.oracle.coherence.grpc.RemoveMappingRequestremove(String scope, String cacheName, String format, com.google.protobuf.ByteString key, com.google.protobuf.ByteString value) Create aRemoveMappingRequest.static com.oracle.coherence.grpc.MapListenerRequestremoveFilterMapListener(String scope, String cacheName, String format, com.google.protobuf.ByteString filter, long filterId, boolean lite, boolean priming, com.google.protobuf.ByteString mapTrigger) Create aMapListenerRequestthat will subscribe toMapEventsfor all entries in a cache matching a filter.static com.oracle.coherence.grpc.RemoveIndexRequestremoveIndex(String scope, String cacheName, String format, com.google.protobuf.ByteString extractor) Create aRemoveIndexRequest.static com.oracle.coherence.grpc.MapListenerRequestremoveKeyMapListener(String scope, String cacheName, String format, com.google.protobuf.ByteString key, boolean priming, com.google.protobuf.ByteString mapTrigger) Create aMapListenerRequestthat will subscribe toMapEventsfor a single entry in a cache.static com.oracle.coherence.grpc.ReplaceRequestreplace(String scope, String cacheName, String format, com.google.protobuf.ByteString key, com.google.protobuf.ByteString value) Create aReplaceRequest.static com.oracle.coherence.grpc.ReplaceMappingRequestreplace(String scope, String cacheName, String format, com.google.protobuf.ByteString key, com.google.protobuf.ByteString previousValue, com.google.protobuf.ByteString newValue) Create aReplaceMappingRequest.static com.oracle.coherence.grpc.SizeRequestCreate aSizeRequest.static com.oracle.coherence.grpc.TruncateRequestCreate aTruncateRequest.static com.oracle.coherence.grpc.ValuesRequestCreate aValuesRequest.static com.oracle.coherence.grpc.ValuesRequestvalues(String scope, String cacheName, String format, com.google.protobuf.ByteString filter, com.google.protobuf.ByteString comparator) Create aValuesRequest.
-
Field Details
-
PROP_TLS_CLIENT_AUTH
The system property that sets whether mutual TLS is enabled.- See Also:
-
PROP_TLS_KEY
The system property that sets the location of the TLS key file.- See Also:
-
PROP_TLS_KEYPASS
The system property that sets the password for the TLS key file.- See Also:
-
PROP_TLS_KEYPASS_URI
The system property that sets the URI of a file to read to obtain the password for the TLS key file.- See Also:
-
PROP_TLS_CERT
The system property that sets the location of the TLS cert file.- See Also:
-
PROP_TLS_CA
The system property that sets the location of the TLS CA file.- See Also:
-
PROP_CREDENTIALS
The system property that sets the credentials type.- See Also:
-
CREDENTIALS_INSECURE
The value used for thePROP_CREDENTIALSsystem property to indicate an insecure server.- See Also:
-
CREDENTIALS_TLS
The value used for thePROP_CREDENTIALSsystem property to indicate the server should use TLS.- See Also:
-
CREDENTIALS_PLAINTEXT
The credentials to use to connect to a non-TLS enabled server.- See Also:
-
-
Method Details
-
addIndex
public static com.oracle.coherence.grpc.AddIndexRequest addIndex(String scope, String cacheName, String format, com.google.protobuf.ByteString extractor) Create aAddIndexRequest.- Parameters:
scope- the scope name to use to obtain the cache from.cacheName- the name of the cacheformat- the serialization format usedextractor- the serialized ValueExtractor to use to create the index- Returns:
- a
AddIndexRequest
-
addIndex
public static com.oracle.coherence.grpc.AddIndexRequest addIndex(String scope, String cacheName, String format, com.google.protobuf.ByteString extractor, boolean sorted) Create aAddIndexRequest.- Parameters:
scope- the scope name to use to obtain the cache from.cacheName- the name of the cacheformat- the serialization format usedextractor- the serialized ValueExtractor to use to create the indexsorted- a flag indicating whether the index will be sorted- Returns:
- a
AddIndexRequest
-
addIndex
public static com.oracle.coherence.grpc.AddIndexRequest addIndex(String scope, String cacheName, String format, com.google.protobuf.ByteString extractor, boolean sorted, com.google.protobuf.ByteString comparator) Create aAddIndexRequest.- Parameters:
scope- the scope name to use to obtain the cache from.cacheName- the name of the cacheformat- the serialization format usedextractor- the serialized ValueExtractor to use to create the indexsorted- a flag indicating whether the index will be sortedcomparator- an optional serializedComparatorto use to sort the index- Returns:
- a
AddIndexRequest
-
initListenerChannel
public static com.oracle.coherence.grpc.MapListenerRequest initListenerChannel(String scope, String cacheName, String format) Create aMapListenerRequestthat will initialise the bidirectional channel.After this request has been sent the response observer will receive responses if the underlying cache is released on the proxy, destroyed or truncated.
- Parameters:
scope- the scope name to use to obtain the cache from.cacheName- the name of the cacheformat- the serialization format used- Returns:
- an
MapListenerRequestthat will subscribe toMapEventsfor all entries in a cache
-
addKeyMapListener
public static com.oracle.coherence.grpc.MapListenerRequest addKeyMapListener(String scope, String cacheName, String format, com.google.protobuf.ByteString key, boolean lite, boolean priming, com.google.protobuf.ByteString mapTrigger) Create aMapListenerRequestthat will subscribe toMapEventsfor a single entry in a cache.- Parameters:
scope- the scope name to use to obtain the cache from.cacheName- the name of the cacheformat- the serialization format usedkey- the serialized key that identifies the entry for which to raise eventslite-trueto indicate that theMapEventobjects do not have to include the OldValue and NewValue property values in order to allow optimizationspriming- a flag set to {@link true} to indicate that this is a priming listenermapTrigger- an optional serializedMapTrigger- Returns:
- an
MapListenerRequestthat will subscribe toMapEventsfor all entries in a cache
-
addFilterMapListener
public static com.oracle.coherence.grpc.MapListenerRequest addFilterMapListener(String scope, String cacheName, String format, com.google.protobuf.ByteString filter, long filterId, boolean lite, boolean priming, com.google.protobuf.ByteString mapTrigger) Create aMapListenerRequestthat will subscribe toMapEventsfor all entries in a cache matching a filter.- Parameters:
scope- the scope name to use to obtain the cache from.cacheName- the name of the cacheformat- the serialization format usedfilter- the serialized filter that identifies the entries for which to raise eventsfilterId- a unique identifier to identify this filter to the clientlite-trueto indicate that theMapEventobjects do not have to include the OldValue and NewValue property values in order to allow optimizationspriming- a flag set to {@link true} to indicate that this is a priming listenermapTrigger- an optional serializedMapTrigger- Returns:
- an
MapListenerRequestthat will subscribe toMapEventsfor all entries in a cache
-
aggregate
public static com.oracle.coherence.grpc.AggregateRequest aggregate(String scope, String cacheName, String format, com.google.protobuf.ByteString filter, com.google.protobuf.ByteString aggregator) Create aAggregateRequest.- Parameters:
scope- the scope name to use to obtain the cache from.cacheName- the name of the cache to clearformat- the serialization format usedfilter- the serializedFilterorByteString.EMPTYto represent anAlwaysFilteraggregator- the serializedInvocableMap.EntryAggregator- Returns:
- a
AggregateRequest
-
aggregate
public static com.oracle.coherence.grpc.AggregateRequest aggregate(String scope, String cacheName, String format, Iterable<com.google.protobuf.ByteString> keys, com.google.protobuf.ByteString aggregator) Create aAggregateRequest.- Parameters:
scope- the scope name to use to obtain the cache from.cacheName- the name of the cache to clearformat- the serialization format usedkeys- the serialized entry keysaggregator- the serializedInvocableMap.EntryAggregator- Returns:
- a
AggregateRequest
-
clear
Create aClearRequest.- Parameters:
scope- the scope name to use to obtain the cache from.cacheName- the name of the cache to clear- Returns:
- a
ClearRequest
-
containsEntry
public static com.oracle.coherence.grpc.ContainsEntryRequest containsEntry(String scope, String cacheName, String format, com.google.protobuf.ByteString key, com.google.protobuf.ByteString value) Create aContainsEntryRequest.- Parameters:
scope- the scope name to use to obtain the cache from.cacheName- the name of the cache to checkformat- the serialization format usedkey- the key of the entry to check if the mapping existsvalue- the value of the entry to check if the mapping exists- Returns:
- a
ContainsEntryRequest
-
containsKey
public static com.oracle.coherence.grpc.ContainsKeyRequest containsKey(String scope, String cacheName, String format, com.google.protobuf.ByteString key) Create aClearRequest.- Parameters:
scope- the scope name to use to obtain the cache from.cacheName- the name of the cache to clearformat- the serialization format usedkey- the key of the entry to check if the mapping exists- Returns:
- a
ContainsKeyRequest
-
containsValue
public static com.oracle.coherence.grpc.ContainsValueRequest containsValue(String scope, String cacheName, String format, com.google.protobuf.ByteString value) Create aContainsValueRequest.- Parameters:
scope- the scope name to use to obtain the cache from.cacheName- the name of the cache to checkformat- the serialization format usedvalue- the value of the entry to check if the mapping exists- Returns:
- a
ContainsValueRequest
-
destroy
Create aDestroyRequest.- Parameters:
scope- the scope name to use to obtain the cache from.cacheName- the name of the cache- Returns:
- a
DestroyRequest
-
entrySet
public static com.oracle.coherence.grpc.EntrySetRequest entrySet(String scope, String cacheName, String format, com.google.protobuf.ByteString filter) Create anEntrySetRequest.- Parameters:
scope- the scope name to use to obtain the cache from.cacheName- the name of the cacheformat- the serialization format usedfilter- the serializedFilter- Returns:
- an
EntrySetRequest
-
entrySet
public static com.oracle.coherence.grpc.EntrySetRequest entrySet(String scope, String cacheName, String format, com.google.protobuf.ByteString filter, com.google.protobuf.ByteString comparator) Create anEntrySetRequest.- Parameters:
scope- the scope name to use to obtain the cache from.cacheName- the name of the cacheformat- the serialization format usedfilter- the serializedFiltercomparator- the serializedComparator- Returns:
- an
EntrySetRequest
-
get
public static com.oracle.coherence.grpc.GetRequest get(String scope, String cacheName, String format, com.google.protobuf.ByteString key) Create aGetRequest.- Parameters:
scope- the scope name to use to obtain the cache from.cacheName- the name of the cache to clearformat- the serialization format usedkey- the key of the entry to get the value for- Returns:
- a
GetRequest
-
getAll
public static com.oracle.coherence.grpc.GetAllRequest getAll(String scope, String cacheName, String format, Iterable<com.google.protobuf.ByteString> keys) Create aGetAllRequest.- Parameters:
scope- the scope name to use to obtain the cache from.cacheName- the name of the cache to clearformat- the serialization format usedkeys- the keys of the entries to get the values for- Returns:
- a
GetAllRequest
-
invoke
public static com.oracle.coherence.grpc.InvokeRequest invoke(String scope, String cacheName, String format, com.google.protobuf.ByteString key, com.google.protobuf.ByteString processor) Create aInvokeRequest.- Parameters:
scope- the scope name to use to obtain the cache from.cacheName- the name of the cache to clearformat- the serialization format usedkey- the serialized key of the entry to invoke the entry processor againstprocessor- the serialized entry processor- Returns:
- a
InvokeRequest
-
invokeAll
public static com.oracle.coherence.grpc.InvokeAllRequest invokeAll(String scope, String cacheName, String format, Iterable<com.google.protobuf.ByteString> keys, com.google.protobuf.ByteString processor) Create aInvokeAllRequest.- Parameters:
scope- the scope name to use to obtain the cache from.cacheName- the name of the cache to clearformat- the serialization format usedkeys- the serialized keys of the entries to invoke the entry processor againstprocessor- the serialized entry processor- Returns:
- a
InvokeAllRequest
-
invokeAll
public static com.oracle.coherence.grpc.InvokeAllRequest invokeAll(String scope, String cacheName, String format, com.google.protobuf.ByteString filter, com.google.protobuf.ByteString processor) Create aInvokeAllRequest.- Parameters:
scope- the scope name to use to obtain the cache from.cacheName- the name of the cache to clearformat- the serialization format usedfilter- the serialized filter to identify of the entries to invoke the entry processor againstprocessor- the serialized entry processor- Returns:
- a
InvokeAllRequest
-
isEmpty
Create aIsEmptyRequest.- Parameters:
scope- the scope name to use to obtain the cache from.cacheName- the name of the cache to clear- Returns:
- a
IsEmptyRequest
-
keySet
public static com.oracle.coherence.grpc.KeySetRequest keySet(String scope, String cacheName, String format, com.google.protobuf.ByteString filter) Create anKeySetRequest.- Parameters:
scope- the scope name to use to obtain the cache from.cacheName- the name of the cacheformat- the serialization format usedfilter- the serializedFilter- Returns:
- an
KeySetRequest
-
page
public static com.oracle.coherence.grpc.PageRequest page(String scope, String cacheName, String format, com.google.protobuf.ByteString cookie) Create aPageRequest.- Parameters:
scope- the scope name to use to obtain the cache from.cacheName- the name of the cacheformat- the serialization format usedcookie- the opaque cookie used to track the page being requested- Returns:
- a
PageRequest
-
put
public static com.oracle.coherence.grpc.PutRequest put(String scope, String cacheName, String format, com.google.protobuf.ByteString key, com.google.protobuf.ByteString value) Create aPutRequest.- Parameters:
scope- the scope name to use to obtain the cache from.cacheName- the name of the cache to put the value intoformat- the serialization format usedkey- the key of the entry to updatevalue- the value to map to the key in the cache- Returns:
- a
PutRequestto update the value mapped to a key in a cache
-
put
public static com.oracle.coherence.grpc.PutRequest put(String scope, String cacheName, String format, com.google.protobuf.ByteString key, com.google.protobuf.ByteString value, long ttl) Create aPutRequest.- Parameters:
scope- the scope name to use to obtain the cache from.cacheName- the name of the cache to put the value intoformat- the serialization format usedkey- the key of the entry to updatevalue- the value to map to the key in the cachettl- the time to live for the cache entry- Returns:
- a
PutRequestto update the value mapped to a key in a cache
-
putAll
public static com.oracle.coherence.grpc.PutAllRequest putAll(String scope, String cacheName, String format, Iterable<com.oracle.coherence.grpc.Entry> entries) Create aPutAllRequest.- Parameters:
scope- the scope name to use to obtain the cache from.cacheName- the name of the cache to put the values intoformat- the serialization format usedentries- the entries to put into the cache- Returns:
- a
PutAllRequest
-
putIfAbsent
public static com.oracle.coherence.grpc.PutIfAbsentRequest putIfAbsent(String scope, String cacheName, String format, com.google.protobuf.ByteString key, com.google.protobuf.ByteString value) Create aPutIfAbsentRequest.- Parameters:
scope- the scope name to use to obtain the cache from.cacheName- the name of the cache to put the value intoformat- the serialization format usedkey- the key of the entry to updatevalue- the value to map to the key in the cache- Returns:
- a
PutIfAbsentRequestto update the value mapped to a key in a cache if no mapping exists for the key
-
ready
Create aClearRequest.- Parameters:
scope- the scope name to use to obtain the cache from.cacheName- the name of the cache to clear- Returns:
- a
ClearRequest - Since:
- 14.1.1.2206.5
-
remove
public static com.oracle.coherence.grpc.RemoveRequest remove(String scope, String cacheName, String format, com.google.protobuf.ByteString key) Create aRemoveRequest.- Parameters:
scope- the scope name to use to obtain the cache from.cacheName- the name of the cache to remove the valueformat- the serialization format usedkey- the key of the entry to remove- Returns:
- a
RemoveRequestto update the value mapped to a key in a cache if no mapping exists for the key
-
remove
public static com.oracle.coherence.grpc.RemoveMappingRequest remove(String scope, String cacheName, String format, com.google.protobuf.ByteString key, com.google.protobuf.ByteString value) Create aRemoveMappingRequest.- Parameters:
scope- the scope name to use to obtain the cache from.cacheName- the name of the cache to remove the mappingformat- the serialization format usedkey- the key of the entry to removevalue- the value of the existing mapping- Returns:
- a
RemoveMappingRequestto update the value mapped to a key in a cache if no mapping exists for the key
-
removeIndex
public static com.oracle.coherence.grpc.RemoveIndexRequest removeIndex(String scope, String cacheName, String format, com.google.protobuf.ByteString extractor) Create aRemoveIndexRequest.- Parameters:
scope- the scope name to use to obtain the cache from.cacheName- the name of the cacheformat- the serialization format usedextractor- the serialized ValueExtractor to use to remove the index- Returns:
- a
RemoveIndexRequest
-
removeKeyMapListener
public static com.oracle.coherence.grpc.MapListenerRequest removeKeyMapListener(String scope, String cacheName, String format, com.google.protobuf.ByteString key, boolean priming, com.google.protobuf.ByteString mapTrigger) Create aMapListenerRequestthat will subscribe toMapEventsfor a single entry in a cache.- Parameters:
scope- the scope name to use to obtain the cache from.cacheName- the name of the cacheformat- the serialization format usedkey- the serialized key that identifies the entry for which to raise eventspriming- a flag set to {@link true} to indicate that this is a priming listenermapTrigger- an optional serializedMapTrigger- Returns:
- an
MapListenerRequestthat will subscribe toMapEventsfor all entries in a cache
-
removeFilterMapListener
public static com.oracle.coherence.grpc.MapListenerRequest removeFilterMapListener(String scope, String cacheName, String format, com.google.protobuf.ByteString filter, long filterId, boolean lite, boolean priming, com.google.protobuf.ByteString mapTrigger) Create aMapListenerRequestthat will subscribe toMapEventsfor all entries in a cache matching a filter.- Parameters:
scope- the scope name to use to obtain the cache from.cacheName- the name of the cacheformat- the serialization format usedfilter- the serialized filter that identifies the entries for which to raise eventsfilterId- a unique identifier to identify this filter to the clientlite-trueto indicate that theMapEventobjects do not have to include the OldValue and NewValue property values in order to allow optimizationspriming- a flag set to {@link true} to indicate that this is a priming listenermapTrigger- an optional serializedMapTrigger- Returns:
- an
MapListenerRequestthat will subscribe toMapEventsfor all entries in a cache
-
replace
public static com.oracle.coherence.grpc.ReplaceRequest replace(String scope, String cacheName, String format, com.google.protobuf.ByteString key, com.google.protobuf.ByteString value) Create aReplaceRequest.- Parameters:
scope- the scope name to use to obtain the cache from.cacheName- the name of the cache to remove the mappingformat- the serialization format usedkey- the key of the entry to removevalue- the value of the new mapping- Returns:
- a
ReplaceRequestto update the value mapped to a key in a cache if no mapping exists for the key
-
replace
public static com.oracle.coherence.grpc.ReplaceMappingRequest replace(String scope, String cacheName, String format, com.google.protobuf.ByteString key, com.google.protobuf.ByteString previousValue, com.google.protobuf.ByteString newValue) Create aReplaceMappingRequest.- Parameters:
scope- the scope name to use to obtain the cache from.cacheName- the name of the cache to remove the mappingformat- the serialization format usedkey- the key of the entry to removepreviousValue- the value of the existing mappingnewValue- the new value of the new mapping- Returns:
- a
ReplaceMappingRequestto update the value mapped to a key in a cache if no mapping exists for the key
-
size
Create aSizeRequest.- Parameters:
scope- the scope name to use to obtain the cache from.cacheName- the name of the cache to clear- Returns:
- a
SizeRequest
-
truncate
Create aTruncateRequest.- Parameters:
scope- the scope name to use to obtain the cache from.cacheName- the name of the cache- Returns:
- a
TruncateRequest
-
values
public static com.oracle.coherence.grpc.ValuesRequest values(String scope, String cacheName, String format, com.google.protobuf.ByteString filter) Create aValuesRequest.- Parameters:
scope- the scope name to use to obtain the cache from.cacheName- the name of the cacheformat- the serialization format usedfilter- the serializedFilter- Returns:
- an
ValuesRequest
-
values
public static com.oracle.coherence.grpc.ValuesRequest values(String scope, String cacheName, String format, com.google.protobuf.ByteString filter, com.google.protobuf.ByteString comparator) Create aValuesRequest.- Parameters:
scope- the scope name to use to obtain the cache from.cacheName- the name of the cacheformat- the serialization format usedfilter- the serializedFiltercomparator- the serializedComparator- Returns:
- an
ValuesRequest
-