Package | Description |
---|---|
org.glassfish.jersey.internal.guava |
Modifier and Type | Method and Description |
---|---|
CacheBuilder<K,V> |
CacheBuilder.expireAfterAccess(long duration,
TimeUnit unit)
Specifies that each entry should be automatically removed from the cache once a fixed duration
has elapsed after the entry's creation, the most recent replacement of its value, or its last
access.
|
CacheBuilder<K,V> |
CacheBuilder.maximumSize(long size)
Specifies the maximum number of entries the cache may contain.
|
static CacheBuilder<Object,Object> |
CacheBuilder.newBuilder()
Constructs a new
CacheBuilder instance with default settings, including strong keys,
strong values, and no automatic eviction of any kind. |
Copyright © 2007-2024, Oracle and/or its affiliates. All Rights Reserved. Use is subject to license terms.