public class CacheOptions extends Object
Modifier and Type | Field and Description |
---|---|
static int |
DEFAULT_MAX_SIZE |
Constructor and Description |
---|
CacheOptions() |
CacheOptions(JsonObject json) |
Modifier and Type | Method and Description |
---|---|
int |
getMaxSize() |
<K,V> Cache<K,V> |
newCache() |
CacheOptions |
setMaxSize(int maxSize)
Set the max number of entries the cache can hold.
|
JsonObject |
toJson() |
String |
toString() |
public static final int DEFAULT_MAX_SIZE
public CacheOptions()
public CacheOptions(JsonObject json)
public int getMaxSize()
public CacheOptions setMaxSize(int maxSize)
maxSize
- the max sizepublic <K,V> Cache<K,V> newCache()
public JsonObject toJson()
Copyright © 2024 Eclipse. All rights reserved.