Class CacheFreeingOption
java.lang.Object
com.fren_gor.ultimateAdvancementAPI.database.CacheFreeingOption
The
CacheFreeingOption
class represents the caching strategy that will be used by the caching system (see DatabaseManager
).-
Nested Class Summary
Modifier and TypeClassDescriptionstatic enum
Available caching options. -
Method Summary
Modifier and TypeMethodDescriptionstatic CacheFreeingOption
Gets aCacheFreeingOption
instance with caching strategyCacheFreeingOption.Option#AUTOMATIC
.static CacheFreeingOption
Gets aCacheFreeingOption
instance with caching strategyCacheFreeingOption.Option#DONT_CACHE
.static CacheFreeingOption
Gets aCacheFreeingOption
instance with caching strategyCacheFreeingOption.Option#MANUAL
.
-
Method Details
-
DONT_CACHE
Gets aCacheFreeingOption
instance with caching strategyCacheFreeingOption.Option#DONT_CACHE
.- Returns:
- A
CacheFreeingOption
instance with caching strategyCacheFreeingOption.Option#DONT_CACHE
.
-
AUTOMATIC
public static CacheFreeingOption AUTOMATIC(@NotNull @NotNull Plugin requester, @Range(from=0L, to=Long.MAX_VALUE) long ticks) Gets aCacheFreeingOption
instance with caching strategyCacheFreeingOption.Option#AUTOMATIC
.- Parameters:
requester
- ThePlugin
that will make the request.ticks
- The amount of ticks the requested player will remain in the cache.- Returns:
- A
CacheFreeingOption
instance with caching strategyCacheFreeingOption.Option#AUTOMATIC
.
-
MANUAL
Gets aCacheFreeingOption
instance with caching strategyCacheFreeingOption.Option#MANUAL
.- Parameters:
requester
- ThePlugin
that will make the request.- Returns:
- A
CacheFreeingOption
instance with caching strategyCacheFreeingOption.Option#MANUAL
.
-