### YamlMime:JavaType constructors: - fullName: microsoft.servicefabric.data.collections.ReliableHashMap.ReliableHashMap(long store, long replicaId, String name, String traceId) name: ReliableHashMap(long store, long replicaId, String name, String traceId) nameWithType: ReliableHashMap.ReliableHashMap(long store, long replicaId, String name, String traceId) parameters: - name: store type: - name: replicaId type: - name: name type: - name: traceId type: syntax: public ReliableHashMap(long store, long replicaId, String name, String traceId) uid: microsoft.servicefabric.data.collections.ReliableHashMap.ReliableHashMap(long,long,String,String) inheritances: - - inheritedMembers: - microsoft.servicefabric.data.collections.ReliableCollectionsNativeAPIs.freeTStore(long) - microsoft.servicefabric.data.collections.ReliableCollectionsNativeAPIs.nativeAddAsync(long,long,String,byte [],int,long,long,int,int,CancellationToken) - microsoft.servicefabric.data.collections.ReliableCollectionsNativeAPIs.nativeContainsKeyAsync(long,long,String,int,long,long,int,CancellationToken) - microsoft.servicefabric.data.collections.ReliableCollectionsNativeAPIs.nativeEnumeratorAsync(long,long,long,int) - microsoft.servicefabric.data.collections.ReliableCollectionsNativeAPIs.nativeGetAsync(long,long,String,long,long,int,CancellationToken) - microsoft.servicefabric.data.collections.ReliableCollectionsNativeAPIs.nativeGetCount(long) - microsoft.servicefabric.data.collections.ReliableCollectionsNativeAPIs.nativeKeyEnumeratorAsync(long,long,long,int) - microsoft.servicefabric.data.collections.ReliableCollectionsNativeAPIs.nativePutAsync(long,long,String,byte [],int,long,long,int,int,CancellationToken) - microsoft.servicefabric.data.collections.ReliableCollectionsNativeAPIs.nativePutIfAbsentAsync(long,long,String,byte [],int,long,long,int,int,CancellationToken) - microsoft.servicefabric.data.collections.ReliableCollectionsNativeAPIs.nativeRemoveAsync(long,long,String,long,long,int,CancellationToken) - microsoft.servicefabric.data.collections.ReliableCollectionsNativeAPIs.nativeUpdateAsync(long,long,String,byte [],int,long,long,int,int,CancellationToken) methods: - fullName: microsoft.servicefabric.data.collections.ReliableHashMap.clearAsync() name: clearAsync() nameWithType: ReliableHashMap.clearAsync() overridden: microsoft.servicefabric.data.collections.ReliableCollection.clearAsync() returns: description:

A completable future that represents the asynchronous clear operation.

type: summary:

Removes all state from the , including replicated and persisted store.

syntax: public CompletableFuture clearAsync() uid: microsoft.servicefabric.data.collections.ReliableHashMap.clearAsync() - fullName: microsoft.servicefabric.data.collections.ReliableHashMap.close() name: close() nameWithType: ReliableHashMap.close() syntax: public void close() uid: microsoft.servicefabric.data.collections.ReliableHashMap.close() - fullName: microsoft.servicefabric.data.collections.ReliableHashMap.computeAsync(Transaction txn, K key, BiFunction remappingFunction) name: computeAsync(Transaction txn, K key, BiFunction remappingFunction) nameWithType: ReliableHashMap.computeAsync(Transaction txn, K key, BiFunction remappingFunction) parameters: - description:

The transaction id associated with this operation.

name: txn type: - description:

key with which the specified value is to be associated

name: key type: - description:

the function to compute a value

name: remappingFunction type: exceptions: - type: description:

if key, remappingFunction or txn is null.

returns: description: >-

with the new(computed) value associated with the specified key, or null if the computed value is null. The future completes exceptionally with for fabric related failures.

type: summary: >-

Attempts to compute a mapping for the specified key and its current mapped value (or null if there is no current mapping).

syntax: public CompletableFuture computeAsync(Transaction txn, K key, BiFunction remappingFunction) uid: microsoft.servicefabric.data.collections.ReliableHashMap.computeAsync(Transaction,K,BiFunction) - fullName: microsoft.servicefabric.data.collections.ReliableHashMap.computeAsync(Transaction txn, K key, BiFunction remappingFunction, Duration timeout, CancellationToken cancellationToken) name: computeAsync(Transaction txn, K key, BiFunction remappingFunction, Duration timeout, CancellationToken cancellationToken) nameWithType: ReliableHashMap.computeAsync(Transaction txn, K key, BiFunction remappingFunction, Duration timeout, CancellationToken cancellationToken) parameters: - description:

The transaction id associated with this operation.

name: txn type: - description:

key with which the specified value is to be associated.

name: key type: - description:

the function to compute a value.

name: remappingFunction type: - description:

the timeout for the operation to complete. Default timeout(4 seconds) will be used if null is passed.

name: timeout type: - description: >-

object to indicate the cancellation status of the operation.

name: cancellationToken type: exceptions: - type: description:

if key, remappingFunction or txn is null.

returns: description: >-

with the new(computed) value associated with the specified key, or null if the computed value is null. The future completes exceptionally with for fabric related failures.

type: summary: >-

Attempts to compute a mapping for the specified key and its current mapped value (or null if there is no current mapping).

syntax: public CompletableFuture computeAsync(Transaction txn, K key, BiFunction remappingFunction, Duration timeout, CancellationToken cancellationToken) uid: microsoft.servicefabric.data.collections.ReliableHashMap.computeAsync(Transaction,K,BiFunction,Duration,CancellationToken) - fullName: microsoft.servicefabric.data.collections.ReliableHashMap.computeIfAbsentAsync(Transaction txn, K key, Function mappingFunction) name: computeIfAbsentAsync(Transaction txn, K key, Function mappingFunction) nameWithType: ReliableHashMap.computeIfAbsentAsync(Transaction txn, K key, Function mappingFunction) parameters: - description:

The transaction id associated with this operation.

name: txn type: - description:

key with which the specified value is to be associated

name: key type: - description:

the function to compute a value

name: mappingFunction type: exceptions: - type: description:

if key, mappingFunction or txn is null.

returns: description: >-

with the new(computed) value if there was no previous mapping, or null if the computed value is null or if a mapping already exists for the specified key. The future completes exceptionally with for fabric related failures.

type: summary: >-

If the specified key is not already associated with a value, attempts to compute its value using the given mapping function and enters it into this map unless null.

syntax: public CompletableFuture computeIfAbsentAsync(Transaction txn, K key, Function mappingFunction) uid: microsoft.servicefabric.data.collections.ReliableHashMap.computeIfAbsentAsync(Transaction,K,Function) - fullName: microsoft.servicefabric.data.collections.ReliableHashMap.computeIfAbsentAsync(Transaction txn, K key, Function mappingFunction, Duration timeout, CancellationToken cancellationToken) name: computeIfAbsentAsync(Transaction txn, K key, Function mappingFunction, Duration timeout, CancellationToken cancellationToken) nameWithType: ReliableHashMap.computeIfAbsentAsync(Transaction txn, K key, Function mappingFunction, Duration timeout, CancellationToken cancellationToken) parameters: - description:

The transaction id associated with this operation.

name: txn type: - description:

key with which the specified value is to be associated

name: key type: - description:

the function to compute a value

name: mappingFunction type: - description:

the timeout for the operation to complete. Default timeout(4 seconds) will be used if null is passed.

name: timeout type: - description: >-

object to indicate the cancellation status of the operation.

name: cancellationToken type: exceptions: - type: description:

if key, mappingFunction or txn is null.

returns: description: >-

with the new(computed) value if there was no previous mapping, or null if the computed value is null or if a mapping already exists for the specified key. The future completes exceptionally with for fabric related failures.

type: summary: >-

If the specified key is not already associated with a value, attempts to compute its value using the given mapping function and enters it into this map unless null.

syntax: public CompletableFuture computeIfAbsentAsync(Transaction txn, K key, Function mappingFunction, Duration timeout, CancellationToken cancellationToken) uid: microsoft.servicefabric.data.collections.ReliableHashMap.computeIfAbsentAsync(Transaction,K,Function,Duration,CancellationToken) - fullName: microsoft.servicefabric.data.collections.ReliableHashMap.computeIfPresentAsync(Transaction txn, K key, BiFunction remappingFunction) name: computeIfPresentAsync(Transaction txn, K key, BiFunction remappingFunction) nameWithType: ReliableHashMap.computeIfPresentAsync(Transaction txn, K key, BiFunction remappingFunction) parameters: - description:

The transaction id associated with this operation.

name: txn type: - description:

key with which a value may be associated.

name: key type: - description:

the function to compute a value.

name: remappingFunction type: exceptions: - type: description:

if key, remappingFunction or txn is null.

returns: description: >-

with the new(computed) value if there was a previous mapping, or null if the computed value is null or if no mapping exists for the specified key. The future completes exceptionally with for fabric related failures.

type: summary: >-

If the value for the specified key is present, attempts to compute a new mapping given the key and its current mapped value.

syntax: public CompletableFuture computeIfPresentAsync(Transaction txn, K key, BiFunction remappingFunction) uid: microsoft.servicefabric.data.collections.ReliableHashMap.computeIfPresentAsync(Transaction,K,BiFunction) - fullName: microsoft.servicefabric.data.collections.ReliableHashMap.computeIfPresentAsync(Transaction txn, K key, BiFunction remappingFunction, Duration timeout, CancellationToken cancellationToken) name: computeIfPresentAsync(Transaction txn, K key, BiFunction remappingFunction, Duration timeout, CancellationToken cancellationToken) nameWithType: ReliableHashMap.computeIfPresentAsync(Transaction txn, K key, BiFunction remappingFunction, Duration timeout, CancellationToken cancellationToken) parameters: - description:

The transaction id associated with this operation.

name: txn type: - description:

key with which a value may be associated.

name: key type: - description:

the function to compute a value.

name: remappingFunction type: - description:

the timeout for the operation to complete. Default timeout(4 seconds) will be used if null is passed.

name: timeout type: - description: >-

object to indicate the cancellation status of the operation.

name: cancellationToken type: exceptions: - type: description:

if key, remappingFunction or txn is null.

returns: description: >-

with the new(computed) value if there was a previous mapping, or null if the computed value is null or if no mapping exists for the specified key. The future completes exceptionally with for fabric related failures.

type: summary: >-

If the value for the specified key is present, attempts to compute a new mapping given the key and its current mapped value.

syntax: public CompletableFuture computeIfPresentAsync(Transaction txn, K key, BiFunction remappingFunction, Duration timeout, CancellationToken cancellationToken) uid: microsoft.servicefabric.data.collections.ReliableHashMap.computeIfPresentAsync(Transaction,K,BiFunction,Duration,CancellationToken) - fullName: microsoft.servicefabric.data.collections.ReliableHashMap.containsKeyAsync(Transaction txn, K key) name: containsKeyAsync(Transaction txn, K key) nameWithType: ReliableHashMap.containsKeyAsync(Transaction txn, K key) parameters: - description:

The transaction id associated with this operation.

name: txn type: - description:

possible key

name: key type: exceptions: - type: description:

if key or txn is null.

returns: description: >-

with result true if the key is found in this Map, false otherwise. The future completes exceptionally with for fabric related failures.

type: summary: >-

Tests if the specified object is a key in this table.

syntax: public CompletableFuture containsKeyAsync(Transaction txn, K key) uid: microsoft.servicefabric.data.collections.ReliableHashMap.containsKeyAsync(Transaction,K) - fullName: microsoft.servicefabric.data.collections.ReliableHashMap.containsKeyAsync(Transaction txn, K key, Duration timeout, CancellationToken cancellationToken) name: containsKeyAsync(Transaction txn, K key, Duration timeout, CancellationToken cancellationToken) nameWithType: ReliableHashMap.containsKeyAsync(Transaction txn, K key, Duration timeout, CancellationToken cancellationToken) parameters: - description:

The transaction id associated with this operation.

name: txn type: - description:

possible key

name: key type: - description:

the timeout for the operation to complete. Default timeout(4 seconds) will be used if null is passed.

name: timeout type: - description: >-

object to indicate the cancellation status of the operation.

name: cancellationToken type: exceptions: - type: description:

if key or txn is null.

returns: description: >-

with result true if the key is found in this Map, false otherwise. The future completes exceptionally with for fabric related failures.

type: summary: >-

Tests if the specified object is a key in this table.

syntax: public CompletableFuture containsKeyAsync(Transaction txn, K key, Duration timeout, CancellationToken cancellationToken) uid: microsoft.servicefabric.data.collections.ReliableHashMap.containsKeyAsync(Transaction,K,Duration,CancellationToken) - fullName: microsoft.servicefabric.data.collections.ReliableHashMap.containsKeyAsync(Transaction txn, K key, LockMode lockMode) name: containsKeyAsync(Transaction txn, K key, LockMode lockMode) nameWithType: ReliableHashMap.containsKeyAsync(Transaction txn, K key, LockMode lockMode) parameters: - description:

The transaction id associated with this operation.

name: txn type: - description:

possible key

name: key type: - description:

The lock mode to obtain while checking for presence of the key.

name: lockMode type: exceptions: - type: description:

if key or txn is null.

returns: description: >-

with result true if the key is found in this Map, false otherwise. The future completes exceptionally with for fabric related failures.

type: summary: >-

Tests if the specified object is a key in this table.

syntax: public CompletableFuture containsKeyAsync(Transaction txn, K key, LockMode lockMode) uid: microsoft.servicefabric.data.collections.ReliableHashMap.containsKeyAsync(Transaction,K,LockMode) - fullName: microsoft.servicefabric.data.collections.ReliableHashMap.containsKeyAsync(Transaction txn, K key, LockMode lockMode, Duration timeout, CancellationToken cancellationToken) name: containsKeyAsync(Transaction txn, K key, LockMode lockMode, Duration timeout, CancellationToken cancellationToken) nameWithType: ReliableHashMap.containsKeyAsync(Transaction txn, K key, LockMode lockMode, Duration timeout, CancellationToken cancellationToken) parameters: - description:

The transaction id associated with this operation.

name: txn type: - description:

possible key

name: key type: - description:

The lock mode to obtain while checking for presence of the key.

name: lockMode type: - description:

the timeout for the operation to complete. Default timeout(4 seconds) will be used if null is passed.

name: timeout type: - description: >-

object to indicate the cancellation status of the operation.

name: cancellationToken type: exceptions: - type: description:

if key or txn is null.

returns: description: >-

with result true if the key is found in this Map, false otherwise. The future completes exceptionally with for fabric related failures.

type: summary: >-

Tests if the specified object is a key in this table.

syntax: public CompletableFuture containsKeyAsync(Transaction txn, K key, LockMode lockMode, Duration timeout, CancellationToken cancellationToken) uid: microsoft.servicefabric.data.collections.ReliableHashMap.containsKeyAsync(Transaction,K,LockMode,Duration,CancellationToken) - fullName: microsoft.servicefabric.data.collections.ReliableHashMap.elementsAsync(Transaction txn) name: elementsAsync(Transaction txn) nameWithType: ReliableHashMap.elementsAsync(Transaction txn) parameters: - description:

The transaction id associated with this operation.

name: txn type: exceptions: - type: description:

if txn is null.

returns: description: >-

with an enumeration of the values in this Map. The future completes exceptionally with for fabric related failures.

type: CompletableFuture<<V>> summary: >-

Returns an enumeration of the values in this table.

syntax: public CompletableFuture> elementsAsync(Transaction txn) uid: microsoft.servicefabric.data.collections.ReliableHashMap.elementsAsync(Transaction) - fullName: microsoft.servicefabric.data.collections.ReliableHashMap.getAsync(Transaction txn, K key) name: getAsync(Transaction txn, K key) nameWithType: ReliableHashMap.getAsync(Transaction txn, K key) parameters: - description:

The transaction id associated with this operation.

name: txn type: - description:

the key whose associated value is to be returned

name: key type: exceptions: - type: description:

if key or txn is null.

returns: description: >-

with value to which the specified key is mapped, null if no such mapping exists. The future completes exceptionally with or for deserialization failures, for fabric related failures.

type: summary: >-

Returns the value to which the specified key is mapped, or null if this map contains no mapping for the key.

syntax: public CompletableFuture getAsync(Transaction txn, K key) uid: microsoft.servicefabric.data.collections.ReliableHashMap.getAsync(Transaction,K) - fullName: microsoft.servicefabric.data.collections.ReliableHashMap.getAsync(Transaction txn, K key, Duration timeout, CancellationToken cancellationToken) name: getAsync(Transaction txn, K key, Duration timeout, CancellationToken cancellationToken) nameWithType: ReliableHashMap.getAsync(Transaction txn, K key, Duration timeout, CancellationToken cancellationToken) parameters: - description:

The transaction id associated with this operation.

name: txn type: - description:

the key whose associated value is to be returned

name: key type: - description:

the timeout for the operation to complete. Default timeout(4 seconds) will be used if null is passed.

name: timeout type: - description: >-

object to indicate the cancellation status of the operation.

name: cancellationToken type: exceptions: - type: description:

if key or txn is null.

returns: description: >-

with value to which the specified key is mapped, null if no such mapping exists. The future completes exceptionally with or for deserialization failures, for fabric related failures.

type: summary: >-

Returns the value to which the specified key is mapped, or null if this map contains no mapping for the key.

syntax: public CompletableFuture getAsync(Transaction txn, K key, Duration timeout, CancellationToken cancellationToken) uid: microsoft.servicefabric.data.collections.ReliableHashMap.getAsync(Transaction,K,Duration,CancellationToken) - fullName: microsoft.servicefabric.data.collections.ReliableHashMap.getCount() name: getCount() nameWithType: ReliableHashMap.getCount() overridden: microsoft.servicefabric.data.collections.ReliableCollection.getCount() returns: description:

The number of elements.

type: summary: >-

Gets the number of elements contained in the

syntax: public long getCount() uid: microsoft.servicefabric.data.collections.ReliableHashMap.getCount() - fullName: microsoft.servicefabric.data.collections.ReliableHashMap.getName() name: getName() nameWithType: ReliableHashMap.getName() overridden: microsoft.servicefabric.data.ReliableState.getName() returns: type: summary:

Gets the unique URI name for the Reliable HashMap

syntax: public URI getName() uid: microsoft.servicefabric.data.collections.ReliableHashMap.getName() - fullName: microsoft.servicefabric.data.collections.ReliableHashMap.keysAsync(Transaction txn) name: keysAsync(Transaction txn) nameWithType: ReliableHashMap.keysAsync(Transaction txn) parameters: - description:

The transaction id associated with this operation.

name: txn type: exceptions: - type: description:

if txn is null.

returns: description: >-

with an enumeration of the keys in this Map. The future completes exceptionally with for fabric related failures.

type: CompletableFuture<<K>> summary: >-

Returns an enumeration of the keys in this table.

syntax: public CompletableFuture> keysAsync(Transaction txn) uid: microsoft.servicefabric.data.collections.ReliableHashMap.keysAsync(Transaction) - fullName: microsoft.servicefabric.data.collections.ReliableHashMap.keyValuesAsync(Transaction txn) name: keyValuesAsync(Transaction txn) nameWithType: ReliableHashMap.keyValuesAsync(Transaction txn) parameters: - description:

The transaction id associated with this operation.

name: txn type: exceptions: - type: description:

if txn is null.

returns: description: >-

with an enumeration of in this Map. The future completes exceptionally with for fabric related failures.

type: CompletableFuture<<<K, V>>> summary: >-

Returns an enumeration of the key-value pairs in this table.

syntax: public CompletableFuture>> keyValuesAsync(Transaction txn) uid: microsoft.servicefabric.data.collections.ReliableHashMap.keyValuesAsync(Transaction) - fullName: microsoft.servicefabric.data.collections.ReliableHashMap.putAsync(Transaction txn, K key, V value) name: putAsync(Transaction txn, K key, V value) nameWithType: ReliableHashMap.putAsync(Transaction txn, K key, V value) parameters: - description:

The transaction id associated with this operation.

name: txn type: - description:

key with which the specified value is to be associated

name: key type: - description:

value to be associated with the specified key

name: value type: exceptions: - type: description:

if key, value or txn is null.

returns: description: >-

with result true if there was a previous mapping, false otherwise. The future completes exceptionally with for serialization failures, for fabric related failures.

type: summary: >-

Maps the specified key to the specified value in this table. Neither the key nor the value can be null.

syntax: public CompletableFuture putAsync(Transaction txn, K key, V value) uid: microsoft.servicefabric.data.collections.ReliableHashMap.putAsync(Transaction,K,V) - fullName: microsoft.servicefabric.data.collections.ReliableHashMap.putAsync(Transaction txn, K key, V value, Duration timeout, CancellationToken cancellationToken) name: putAsync(Transaction txn, K key, V value, Duration timeout, CancellationToken cancellationToken) nameWithType: ReliableHashMap.putAsync(Transaction txn, K key, V value, Duration timeout, CancellationToken cancellationToken) parameters: - description:

The transaction id associated with this operation.

name: txn type: - description:

key with which the specified value is to be associated

name: key type: - description:

value to be associated with the specified key

name: value type: - description:

the timeout for the operation to complete. Default timeout(4 seconds) will be used if null is passed.

name: timeout type: - description: >-

object to indicate the cancellation status of the operation.

name: cancellationToken type: exceptions: - type: description:

if key, value or txn is null.

returns: description: >-

with result true if there was a previous mapping, false otherwise. The future completes exceptionally with for serialization failures, for fabric related failures.

type: summary: >-

Maps the specified key to the specified value in this table. Neither the key nor the value can be null.

syntax: public CompletableFuture putAsync(Transaction txn, K key, V value, Duration timeout, CancellationToken cancellationToken) uid: microsoft.servicefabric.data.collections.ReliableHashMap.putAsync(Transaction,K,V,Duration,CancellationToken) - fullName: microsoft.servicefabric.data.collections.ReliableHashMap.putIfAbsentAsync(Transaction txn, K key, V value) name: putIfAbsentAsync(Transaction txn, K key, V value) nameWithType: ReliableHashMap.putIfAbsentAsync(Transaction txn, K key, V value) parameters: - description:

The transaction id associated with this operation.

name: txn type: - description:

key with which the specified value is to be associated

name: key type: - description:

value to be associated with the specified key

name: value type: exceptions: - type: description:

if key, value or txn is null.

returns: description: >-

with result true if the value is applied, false otherwise. The future completes exceptionally with for serialization failures, for fabric related failures.

type: summary: >-

If the specified key is not already associated with a value, associate it with the given value.

syntax: public CompletableFuture putIfAbsentAsync(Transaction txn, K key, V value) uid: microsoft.servicefabric.data.collections.ReliableHashMap.putIfAbsentAsync(Transaction,K,V) - fullName: microsoft.servicefabric.data.collections.ReliableHashMap.putIfAbsentAsync(Transaction txn, K key, V value, Duration timeout, CancellationToken cancellationToken) name: putIfAbsentAsync(Transaction txn, K key, V value, Duration timeout, CancellationToken cancellationToken) nameWithType: ReliableHashMap.putIfAbsentAsync(Transaction txn, K key, V value, Duration timeout, CancellationToken cancellationToken) parameters: - description:

The transaction id associated with this operation.

name: txn type: - description:

key with which the specified value is to be associated

name: key type: - description:

value to be associated with the specified key

name: value type: - description:

the timeout for the operation to complete. Default timeout(4 seconds) will be used if null is passed.

name: timeout type: - description: >-

object to indicate the cancellation status of the operation.

name: cancellationToken type: exceptions: - type: description:

if key, value or txn is null.

returns: description: >-

with result true if the value is applied, false otherwise. The future completes exceptionally with for serialization failures, for fabric related failures.

type: summary: >-

If the specified key is not already associated with a value, associate it with the given value.

syntax: public CompletableFuture putIfAbsentAsync(Transaction txn, K key, V value, Duration timeout, CancellationToken cancellationToken) uid: microsoft.servicefabric.data.collections.ReliableHashMap.putIfAbsentAsync(Transaction,K,V,Duration,CancellationToken) - fullName: microsoft.servicefabric.data.collections.ReliableHashMap.removeAsync(Transaction txn, K key) name: removeAsync(Transaction txn, K key) nameWithType: ReliableHashMap.removeAsync(Transaction txn, K key) parameters: - description:

The transaction id associated with this operation.

name: txn type: - description:

the key that needs to be removed.

name: key type: exceptions: - type: description:

if key or txn is null.

returns: description: >-

with result true if the key is found and remove succeeds, false otherwise. The future completes exceptionally with for fabric related failures.

type: summary: >-

Removes the key (and its corresponding value) from this map. This method does nothing if the key is not in the map.

syntax: public CompletableFuture removeAsync(Transaction txn, K key) uid: microsoft.servicefabric.data.collections.ReliableHashMap.removeAsync(Transaction,K) - fullName: microsoft.servicefabric.data.collections.ReliableHashMap.removeAsync(Transaction txn, K key, Duration timeout, CancellationToken cancellationToken) name: removeAsync(Transaction txn, K key, Duration timeout, CancellationToken cancellationToken) nameWithType: ReliableHashMap.removeAsync(Transaction txn, K key, Duration timeout, CancellationToken cancellationToken) parameters: - description:

The transaction id associated with this operation.

name: txn type: - description:

the key that needs to be removed.

name: key type: - description:

the timeout for the operation to complete. Default timeout(4 seconds) will be used if null is passed.

name: timeout type: - description: >-

object to indicate the cancellation status of the operation.

name: cancellationToken type: exceptions: - type: description:

if key or txn is null.

returns: description: >-

with result true if the key is found and remove succeeds, false otherwise. The future completes exceptionally with for fabric related failures.

type: summary: >-

Removes the key (and its corresponding value) from this map. This method does nothing if the key is not in the map.

syntax: public CompletableFuture removeAsync(Transaction txn, K key, Duration timeout, CancellationToken cancellationToken) uid: microsoft.servicefabric.data.collections.ReliableHashMap.removeAsync(Transaction,K,Duration,CancellationToken) - fullName: microsoft.servicefabric.data.collections.ReliableHashMap.replaceAsync(Transaction txn, K key, V value) name: replaceAsync(Transaction txn, K key, V value) nameWithType: ReliableHashMap.replaceAsync(Transaction txn, K key, V value) parameters: - description:

The transaction id associated with this operation.

name: txn type: - description:

key with which the specified value is associated

name: key type: - description:

value to be associated with the specified key

name: value type: exceptions: - type: description:

if key, value or txn is null.

returns: description: >-

with result true if the key is found and replace succeeds, false otherwise. The future completes exceptionally with for serialization failures, for fabric related failures.

type: summary: >-

Replaces the entry for a key only if currently mapped to some value.

syntax: public CompletableFuture replaceAsync(Transaction txn, K key, V value) uid: microsoft.servicefabric.data.collections.ReliableHashMap.replaceAsync(Transaction,K,V) - fullName: microsoft.servicefabric.data.collections.ReliableHashMap.replaceAsync(Transaction txn, K key, V value, Duration timeout, CancellationToken cancellationToken) name: replaceAsync(Transaction txn, K key, V value, Duration timeout, CancellationToken cancellationToken) nameWithType: ReliableHashMap.replaceAsync(Transaction txn, K key, V value, Duration timeout, CancellationToken cancellationToken) parameters: - description:

The transaction id associated with this operation.

name: txn type: - description:

key with which the specified value is associated

name: key type: - description:

value to be associated with the specified key

name: value type: - description:

the timeout for the operation to complete. Default timeout(4 seconds) will be used if null is passed.

name: timeout type: - description: >-

object to indicate the cancellation status of the operation.

name: cancellationToken type: exceptions: - type: description:

if key, value or txn is null.

returns: description: >-

with result true if the key is found and replace succeeds, false otherwise. The future completes exceptionally with for serialization failures, for fabric related failures.

type: summary: >-

Replaces the entry for a key only if currently mapped to some value.

syntax: public CompletableFuture replaceAsync(Transaction txn, K key, V value, Duration timeout, CancellationToken cancellationToken) uid: microsoft.servicefabric.data.collections.ReliableHashMap.replaceAsync(Transaction,K,V,Duration,CancellationToken) - fullName: microsoft.servicefabric.data.collections.ReliableHashMap.size() name: size() nameWithType: ReliableHashMap.size() returns: description:

This method returns the number of mappings in the map. This is not a asynchronous call. It gives BEST EFFORT number of mappings.

type: summary: >-

Returns the number of mappings.

syntax: public long size() uid: microsoft.servicefabric.data.collections.ReliableHashMap.size() nameWithType: ReliableHashMap syntax: public class ReliableHashMap implements ReliableCollection type: class typeParameters: - name: K - name: V uid: microsoft.servicefabric.data.collections.ReliableHashMap fullName: microsoft.servicefabric.data.collections.ReliableHashMap name: ReliableHashMap package: microsoft.servicefabric.data.collections metadata: {}