Class Singletons

java.lang.Object
com.gigaspaces.internal.utils.Singletons

public class Singletons extends Object
Since:
10.0
Author:
Niv Ingberg
  • Method Details

    • get

      public static Object get(String name)
    • putIfAbsent

      public static Object putIfAbsent(String name, Object newValue)
    • remove

      public static void remove(String name)
    • compareAndRemove

      public 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. Acts like compare AND set, but with removal. Will remove the key if the value matches the existing value in the map.
      Returns:
      the existing value mapped to this key before removal