Package org.cache2k.core.util
Class Util
- java.lang.Object
-
- org.cache2k.core.util.Util
-
public class Util extends Object
A set of utility stuff we need often.- Author:
- Jens Wilke
-
-
Field Summary
Fields Modifier and Type Field Description static StringNAME_SEPARATOR
-
Constructor Summary
Constructors Constructor Description Util()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static StringcompactFullName(org.cache2k.CacheManager mgr, String cacheName)static StringformatTime(Instant t)static <T> TresolveSingleProvider(Class<T> spiClass, Supplier<T> fallback)static voidwaitFor(CompletableFuture<Void> future)Wait for an async task, making it synchronous again.
-
-
-
Field Detail
-
NAME_SEPARATOR
public static final String NAME_SEPARATOR
- See Also:
- Constant Field Values
-
-
Method Detail
-
compactFullName
public static String compactFullName(org.cache2k.CacheManager mgr, String cacheName)
-
resolveSingleProvider
public static <T> T resolveSingleProvider(Class<T> spiClass, Supplier<T> fallback)
-
waitFor
public static void waitFor(CompletableFuture<Void> future)
Wait for an async task, making it synchronous again. Future version will do more asynchronously.
-
-