public class JSONCache
extends java.lang.Object
RootJSONHandler
.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 Response |
getOrCache(DataID dataID,
java.util.function.Supplier<JSONResponse> jsonResponseSupplier) |
static Response |
getOrCache(DataID dataID,
java.util.UUID serverUUID,
java.util.function.Supplier<JSONResponse> jsonResponseSupplier) |
static Response |
getOrCache(java.lang.String identifier,
java.util.function.Supplier<JSONResponse> 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<JSONResponse> jsonResponseSupplier)
public static java.lang.String getOrCacheString(DataID dataID, java.util.UUID serverUUID, java.util.function.Supplier<java.lang.String> stringSupplier)
public static Response getOrCache(DataID dataID, java.util.function.Supplier<JSONResponse> jsonResponseSupplier)
public static Response getOrCache(DataID dataID, java.util.UUID serverUUID, java.util.function.Supplier<JSONResponse> jsonResponseSupplier)
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()