Package io.vertx.httpproxy.cache
Class CacheOptions
- java.lang.Object
-
- io.vertx.httpproxy.cache.CacheOptions
-
public class CacheOptions extends Object
Cache options.
-
-
Field Summary
Fields Modifier and Type Field Description static int
DEFAULT_MAX_SIZE
-
Constructor Summary
Constructors Constructor Description CacheOptions()
CacheOptions(JsonObject json)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method 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()
-
-
-
Field Detail
-
DEFAULT_MAX_SIZE
public static final int DEFAULT_MAX_SIZE
- See Also:
- Constant Field Values
-
-
Constructor Detail
-
CacheOptions
public CacheOptions()
-
CacheOptions
public CacheOptions(JsonObject json)
-
-
Method Detail
-
getMaxSize
public int getMaxSize()
- Returns:
- the max number of entries the cache can hold
-
setMaxSize
public CacheOptions setMaxSize(int maxSize)
Set the max number of entries the cache can hold.- Parameters:
maxSize
- the max size- Returns:
- a reference to this, so the API can be used fluently
-
newCache
public <K,V> Cache<K,V> newCache()
-
toJson
public JsonObject toJson()
-
-