public class Singletons extends Object
Modifier and Type | Method and Description |
---|---|
static Object |
compareAndRemove(String name,
Object value)
The usage of this method is to ensure that a remove followed by putIfAbsent
is safe from race conditions between the two calls.
|
static Object |
get(String name) |
static Object |
putIfAbsent(String name,
Object newValue) |
static void |
remove(String name) |
public static void remove(String name)
public static Object compareAndRemove(String name, Object value)
Copyright © GigaSpaces.