public class PersistenceManagerCloseableSupplier<K,V> extends Object implements CloseableSupplier<CacheEntry<K,V>>
KeyFilter). A timeout value is required so that if a get blocks
for the given timeout it will throw a TimeoutException.| Constructor and Description |
|---|
PersistenceManagerCloseableSupplier(Executor executor,
PersistenceManager manager,
InternalEntryFactory factory,
KeyFilter<K> filter,
long timeout,
TimeUnit unit,
int maxQueue) |
public PersistenceManagerCloseableSupplier(Executor executor, PersistenceManager manager, InternalEntryFactory factory, KeyFilter<K> filter, long timeout, TimeUnit unit, int maxQueue)
public CacheEntry<K,V> get() throws TimeoutException
get in interface Supplier<CacheEntry<K,V>>TimeoutExceptionpublic void close()
close in interface AutoCloseableclose in interface CloseableSupplier<CacheEntry<K,V>>Copyright © 2024 JBoss, a division of Red Hat. All rights reserved.