tuweni / org.apache.tuweni.concurrent

Package org.apache.tuweni.concurrent

Types

AsyncCompletion

A completion that will be complete at a future time.

interface AsyncCompletion

AsyncResult

A result that will be available at a future time.

interface AsyncResult<T : Any!>

CompletableAsyncCompletion

An AsyncCompletion that can later be completed successfully or with a provided exception.

interface CompletableAsyncCompletion : AsyncCompletion

CompletableAsyncResult

An AsyncResult that can be later completed successfully with a provided value, or completed with an exception.

interface CompletableAsyncResult<T : Any!> : AsyncResult<T>

ExpiringMap

A concurrent hash map that stores values along with an expiry. Values are stored in the map until their expiry is reached, after which they will no longer be available and will appear as if removed. The actual removal is done lazily whenever the map is accessed, or when the #purgeExpired() method is invoked.

class ExpiringMap<K : Any!, V : Any!> : MutableMap<K, V>

ExpiringSet

A concurrent hash set that stores values along with an expiry. Elements are stored in the set until their expiry is reached, after which they will no longer be available and will appear as if removed. The actual removal is done lazily whenever the set is accessed, or when the #purgeExpired() method is invoked.

class ExpiringSet<E : Any!> : MutableSet<E>