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
Modifier and TypeFieldDescriptionstatic final String
The value used for thePROP_CREDENTIALS
system property to indicate an insecure server.static final String
The credentials to use to connect to a non-TLS enabled server.static final String
The value used for thePROP_CREDENTIALS
system property to indicate the server should use TLS.static final String
The system property that sets the credentials type.static final String
The system property that sets the location of the TLS CA file.static final String
The system property that sets the location of the TLS cert file.static final String
The system property that sets whether mutual TLS is enabled.static final String
The system property that sets the location of the TLS key file.static final String
The system property that sets the password for the TLS key file.static final String
The 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.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 aMapListenerRequest
that will subscribe toMapEvents
for all entries in a cache matching a filter.static com.oracle.coherence.grpc.AddIndexRequest
Create aAddIndexRequest
.static com.oracle.coherence.grpc.AddIndexRequest
addIndex
(String scope, String cacheName, String format, com.google.protobuf.ByteString extractor, boolean sorted) Create aAddIndexRequest
.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
.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 aMapListenerRequest
that will subscribe toMapEvents
for a single entry in a cache.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
.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
.static com.oracle.coherence.grpc.ClearRequest
Create aClearRequest
.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
.static com.oracle.coherence.grpc.ContainsKeyRequest
containsKey
(String scope, String cacheName, String format, com.google.protobuf.ByteString key) Create aClearRequest
.static com.oracle.coherence.grpc.ContainsValueRequest
containsValue
(String scope, String cacheName, String format, com.google.protobuf.ByteString value) Create aContainsValueRequest
.static com.oracle.coherence.grpc.DestroyRequest
Create aDestroyRequest
.static com.oracle.coherence.grpc.EntrySetRequest
Create anEntrySetRequest
.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
.static com.oracle.coherence.grpc.GetRequest
Create aGetRequest
.static com.oracle.coherence.grpc.GetAllRequest
getAll
(String scope, String cacheName, String format, Iterable<com.google.protobuf.ByteString> keys) Create aGetAllRequest
.static com.oracle.coherence.grpc.MapListenerRequest
initListenerChannel
(String scope, String cacheName, String format) Create aMapListenerRequest
that will initialise the bidirectional channel.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
.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
.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
.static com.oracle.coherence.grpc.IsEmptyRequest
Create aIsEmptyRequest
.static com.oracle.coherence.grpc.KeySetRequest
Create anKeySetRequest
.static com.oracle.coherence.grpc.PageRequest
Create aPageRequest
.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
.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
.static com.oracle.coherence.grpc.PutAllRequest
putAll
(String scope, String cacheName, String format, Iterable<com.oracle.coherence.grpc.Entry> entries) Create aPutAllRequest
.static com.oracle.coherence.grpc.PutAllRequest
putAll
(String scope, String cacheName, String format, Iterable<com.oracle.coherence.grpc.Entry> entries, long cMillis) Create aPutAllRequest
.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
.static com.oracle.coherence.grpc.IsReadyRequest
Create aClearRequest
.static com.oracle.coherence.grpc.RemoveRequest
Create aRemoveRequest
.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
.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 aMapListenerRequest
that will subscribe toMapEvents
for all entries in a cache matching a filter.static com.oracle.coherence.grpc.RemoveIndexRequest
removeIndex
(String scope, String cacheName, String format, com.google.protobuf.ByteString extractor) Create aRemoveIndexRequest
.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 aMapListenerRequest
that will subscribe toMapEvents
for a single entry in a cache.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
.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
.static com.oracle.coherence.grpc.SizeRequest
Create aSizeRequest
.static com.oracle.coherence.grpc.TruncateRequest
Create aTruncateRequest
.static com.oracle.coherence.grpc.ValuesRequest
Create aValuesRequest
.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
.
-
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_CREDENTIALS
system property to indicate an insecure server.- See Also:
-
CREDENTIALS_TLS
The value used for thePROP_CREDENTIALS
system 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 serializedComparator
to use to sort the index- Returns:
- a
AddIndexRequest
-
initListenerChannel
public static com.oracle.coherence.grpc.MapListenerRequest initListenerChannel(String scope, String cacheName, String format) Create aMapListenerRequest
that 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
MapListenerRequest
that will subscribe toMapEvents
for 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 aMapListenerRequest
that will subscribe toMapEvents
for 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
-true
to indicate that theMapEvent
objects do not have to include the OldValue and NewValue property values in order to allow optimizationspriming
- a flag set toinvalid @link
{@link true
mapTrigger
- an optional serializedMapTrigger
- Returns:
- an
MapListenerRequest
that will subscribe toMapEvents
for 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 aMapListenerRequest
that will subscribe toMapEvents
for 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
-true
to indicate that theMapEvent
objects do not have to include the OldValue and NewValue property values in order to allow optimizationspriming
- a flag set toinvalid @link
{@link true
mapTrigger
- an optional serializedMapTrigger
- Returns:
- an
MapListenerRequest
that will subscribe toMapEvents
for 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 serializedFilter
orByteString.EMPTY
to represent anAlwaysFilter
aggregator
- 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 serializedFilter
comparator
- 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
PutRequest
to 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
PutRequest
to 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
-
putAll
public static com.oracle.coherence.grpc.PutAllRequest putAll(String scope, String cacheName, String format, Iterable<com.oracle.coherence.grpc.Entry> entries, long cMillis) 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 cachecMillis
- the expiry delay to apply to the entries- 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
PutIfAbsentRequest
to 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
RemoveRequest
to 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
RemoveMappingRequest
to 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 aMapListenerRequest
that will subscribe toMapEvents
for 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 toinvalid @link
{@link true
mapTrigger
- an optional serializedMapTrigger
- Returns:
- an
MapListenerRequest
that will subscribe toMapEvents
for 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 aMapListenerRequest
that will subscribe toMapEvents
for 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
-true
to indicate that theMapEvent
objects do not have to include the OldValue and NewValue property values in order to allow optimizationspriming
- a flag set toinvalid @link
{@link true
mapTrigger
- an optional serializedMapTrigger
- Returns:
- an
MapListenerRequest
that will subscribe toMapEvents
for 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
ReplaceRequest
to 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
ReplaceMappingRequest
to 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 serializedFilter
comparator
- the serializedComparator
- Returns:
- an
ValuesRequest
-