你当前正在访问 Microsoft Azure Global Edition 技术文档网站。 如果需要访问由世纪互联运营的 Microsoft Azure 中国技术文档网站,请访问 https://docs.azure.cn

ReliableCollection Interface

public interface ReliableCollection extends ReliableState

Defines methods for manipulating Reliable Collections.

Method Summary

Modifier and Type Method and Description
CompletableFuture<Void> clearAsync()

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

long getCount()

Gets the number of elements contained in the ReliableCollection

Inherited Members

Method Details

clearAsync

public CompletableFuture clearAsync()

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

Returns:

A completable future that represents the asynchronous clear operation.

getCount

public long getCount()

Gets the number of elements contained in the ReliableCollection

Returns:

The number of elements.

Applies to