Package com.attivio.sdk.server.global
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 releaseA 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 aGlobalDataStructureFactory
that will be provided by the AIE Node to components that implementGlobalDataStructureFactoryAware
.
-
-
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 asAtomicReference.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 aVariableListener
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.
-
-
-
Method Detail
-
listen
void listen(VariableListener listener) throws AttivioException
Deprecated.Registers aVariableListener
that will be called when the value of this GlobalVariable is changed. The listener will always be called with the current value as part of this registration.- Throws:
AttivioException
-
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 asAtomicReference.compareAndSet(Object, Object)
.- Throws:
AttivioException
-
-