public class JSONCache
extends java.lang.Object
RootJSONResolver
.Modifier and Type | Class and Description |
---|---|
static class |
JSONCache.CleanTask |
Modifier and Type | Method and Description |
---|---|
static void |
cleanUp() |
static java.util.List<java.lang.String> |
getCachedIDs() |
static <T> Response |
getOrCache(DataID dataID,
java.util.function.Supplier<T> objectSupplier) |
static <T> Response |
getOrCache(DataID dataID,
java.util.UUID serverUUID,
java.util.function.Supplier<T> objectSupplier) |
static Response |
getOrCache(java.lang.String identifier,
java.util.function.Supplier<Response> jsonResponseSupplier) |
static java.lang.String |
getOrCacheString(DataID dataID,
java.util.UUID serverUUID,
java.util.function.Supplier<java.lang.String> stringSupplier) |
static void |
invalidate(DataID dataID) |
static void |
invalidate(DataID dataID,
java.util.UUID serverUUID) |
static void |
invalidate(java.lang.String identifier) |
static void |
invalidate(java.util.UUID serverUUID,
DataID... dataIDs) |
static void |
invalidateAll() |
static void |
invalidateMatching(DataID... dataIDs) |
static void |
invalidateMatching(DataID dataID) |
public static Response getOrCache(java.lang.String identifier, java.util.function.Supplier<Response> jsonResponseSupplier)
public static java.lang.String getOrCacheString(DataID dataID, java.util.UUID serverUUID, java.util.function.Supplier<java.lang.String> stringSupplier)
public static <T> Response getOrCache(DataID dataID, java.util.function.Supplier<T> objectSupplier)
public static <T> Response getOrCache(DataID dataID, java.util.UUID serverUUID, java.util.function.Supplier<T> objectSupplier)
public static void invalidate(java.lang.String identifier)
public static void invalidate(DataID dataID)
public static void invalidate(java.util.UUID serverUUID, DataID... dataIDs)
public static void invalidate(DataID dataID, java.util.UUID serverUUID)
public static void invalidateMatching(DataID... dataIDs)
public static void invalidateMatching(DataID dataID)
public static void invalidateAll()
public static void cleanUp()
public static java.util.List<java.lang.String> getCachedIDs()