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