Class WingsCache2k
-
- All Implemented Interfaces:
public class WingsCache2k- Since:
2023-01-25
trydofor
-
-
Field Summary
Fields Modifier and Type Field Description public static Class<out ToggleFeature>FeatureJmx
-
Constructor Summary
Constructors Constructor Description WingsCache2k()
-
Method Summary
Modifier and Type Method Description static Cache2kBuilder<Object, Object>builder(Class<out Object> owner, String use, int max, int ttl, int tti)construct UnknownTypes builder with max size, ttl and tti in second static <K, V> Cache2kBuilder<K, V>builder(Class<out Object> owner, String use, int max, int ttl, int tti, Class<K> k, Class<V> v)construct K-V type builder with max size, ttl and tti in second static Cache2kBuilder<Object, Object>builder(Class<out Object> owner, String use, int max, Duration ttl, Duration tti)construct UnknownTypes builder with max size, ttl and tti in second static <K, V> Cache2kBuilder<K, V>builder(Class<out Object> owner, String use, int max, Duration ttl, Duration tti, Class<K> k, Class<V> v)construct K-V type builder with max size, ttl and tti in second static <K, V> Cache2kBuilder<K, V>builder(Cache2kBuilder<K, V> bld, int max, int ttl, int tti, boolean feature)builder with max size, ttl and tti in second, and feather static <K, V> Cache2kBuilder<K, V>builder(Cache2kBuilder<K, V> bld, int max, Duration ttl, Duration tti, boolean feature)builder with max size, ttl and tti in second, and feather -
-
Method Detail
-
builder
@NotNull() static Cache2kBuilder<Object, Object> builder(Class<out Object> owner, String use, int max, int ttl, int tti)
construct UnknownTypes builder with max size, ttl and tti in second
- Parameters:
owner- owner part of nameuse- usage part of namemax- capacity, max sizettl- time to live in second, skip if le 0tti- time to idle in second, skip if le 0
-
builder
@NotNull() static <K, V> Cache2kBuilder<K, V> builder(Class<out Object> owner, String use, int max, int ttl, int tti, Class<K> k, Class<V> v)
construct K-V type builder with max size, ttl and tti in second
- Parameters:
owner- owner part of nameuse- usage part of namemax- capacity, max sizettl- time to live in second, skip if le 0tti- time to idle in second, skip if le 0
-
builder
@NotNull() static Cache2kBuilder<Object, Object> builder(Class<out Object> owner, String use, int max, Duration ttl, Duration tti)
construct UnknownTypes builder with max size, ttl and tti in second
- Parameters:
owner- owner part of nameuse- usage part of namemax- capacity, max sizettl- time to live, skip if nulltti- time to idle, skip if null
-
builder
@NotNull() static <K, V> Cache2kBuilder<K, V> builder(Class<out Object> owner, String use, int max, Duration ttl, Duration tti, Class<K> k, Class<V> v)
construct K-V type builder with max size, ttl and tti in second
- Parameters:
owner- owner part of nameuse- usage part of namemax- capacity, max sizettl- time to live, skip if nulltti- time to idle, skip if null
-
builder
@Contract(value = "_,_,_,_,_->param1") static <K, V> Cache2kBuilder<K, V> builder(Cache2kBuilder<K, V> bld, int max, int ttl, int tti, boolean feature)
builder with max size, ttl and tti in second, and feather
- Parameters:
bld- the buildermax- capacity, max sizettl- time to live in second, skip if nulltti- time to idle in second, skip if nullfeature- whether enable feather
-
builder
@Contract(value = "_,_,_,_,_->param1") static <K, V> Cache2kBuilder<K, V> builder(Cache2kBuilder<K, V> bld, int max, Duration ttl, Duration tti, boolean feature)
builder with max size, ttl and tti in second, and feather
- Parameters:
bld- the buildermax- capacity, max sizettl- time to live, skip if nulltti- time to idle, skip if nullfeature- whether enable feather
-
-
-
-