Interface GlobalVariable

  • All Superinterfaces:
    java.lang.AutoCloseable, java.io.Closeable

    @Deprecated
    public interface GlobalVariable
    extends java.io.Closeable
    Deprecated.
    This API should no longer be used and is scheduled for removal in a future release
    A variable that is accessible across multiple AIE Nodes in a cluster. The value of the variable will persist across restarts of the system. GlobalVariables should be created via a reference to a GlobalDataStructureFactory that will be provided by the AIE Node to components that implement GlobalDataStructureFactoryAware.
    • Method Summary

      All Methods Instance Methods Abstract Methods Deprecated Methods 
      Modifier and Type Method Description
      boolean compareAndSet​(java.lang.String expectedValue, java.lang.String newValue)
      Deprecated.
      Same semantics as AtomicReference.compareAndSet(Object, Object).
      java.lang.String getCurrentValue()
      Deprecated.
      Returns the current value of the variable or null if not set.
      void listen​(VariableListener listener)
      Deprecated.
      Registers a VariableListener that will be called when the value of this GlobalVariable is changed.
      void set​(java.lang.String value)
      Deprecated.
      Add or updates the value to the new value specified.
      • Methods inherited from interface java.io.Closeable

        close
    • Method Detail

      • set

        void set​(java.lang.String value)
          throws AttivioException
        Deprecated.
        Add or updates the value to the new value specified. Set to null to delete the value.
        Throws:
        AttivioException
      • getCurrentValue

        java.lang.String getCurrentValue()
                                  throws AttivioException
        Deprecated.
        Returns the current value of the variable or null if not set.
        Throws:
        AttivioException
      • compareAndSet

        boolean compareAndSet​(java.lang.String expectedValue,
                              java.lang.String newValue)
                       throws AttivioException
        Deprecated.
        Same semantics as AtomicReference.compareAndSet(Object, Object).
        Throws:
        AttivioException