TimeoutCache

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 long expire
@Nonnull final TimeUnit unit
@Nonnull final Function func
@Nullable final BiConsumer destroyer

CleanupFutureAction

public new CleanupFutureAction (this.future)

Method CleanupFutureAction.

Parameters:
this.future this.future

cleanup

public void cleanup ()

Method cleanup.

shutdown

public void shutdown ()

Method shutdown.

get

public V get (final K key)

Method get.

Parameters:
final K key

CacheEntry

public new CacheEntry ((V)

Method CacheEntry.

Parameters:
(V (V