public class TimeoutCache
Class TimeoutCache. Provides timeoutcache functionality for the Hytale server.
java.lang.Object > TimeoutCache
Field Summary
expire
final
long
expire
Field expire.
cacheEntry
final
CacheEntry
cacheEntry
Field cacheEntry.
key
final
K
key
Field key.
timestamp
private
long
timestamp
Field timestamp.
Method Detail
TimeoutCache
public
public
TimeoutCache
(final long expire, @Nonnull final TimeUnit unit, @Nonnull final Function func, @Nullable final BiConsumer destroyer)
Method TimeoutCache.
- Parameters:
final longexpire@Nonnull final TimeUnitunit@Nonnull final Functionfunc@Nullable final BiConsumerdestroyer
CleanupFutureAction
public
new
CleanupFutureAction
(this.future)
Method CleanupFutureAction.
- Parameters:
this.futurethis.future
cleanup
public
void
cleanup
()
Method cleanup.
shutdown
public
void
shutdown
()
Method shutdown.
get
public
V
get
(final K key)
Method get.
- Parameters:
final Kkey
CacheEntry
public
new
CacheEntry
((V)
Method CacheEntry.
- Parameters:
(V(V