Package com.attivio.sdk.server.global
Interface GlobalVariable
-
- All Superinterfaces:
java.lang.AutoCloseable,java.io.Closeable
@Deprecated public interface GlobalVariable extends java.io.CloseableDeprecated.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 aGlobalDataStructureFactorythat 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 booleancompareAndSet(java.lang.String expectedValue, java.lang.String newValue)Deprecated.Same semantics asAtomicReference.compareAndSet(Object, Object).java.lang.StringgetCurrentValue()Deprecated.Returns the current value of the variable or null if not set.voidlisten(VariableListener listener)Deprecated.Registers aVariableListenerthat will be called when the value of this GlobalVariable is changed.voidset(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 aVariableListenerthat 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 AttivioExceptionDeprecated.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 AttivioExceptionDeprecated.Same semantics asAtomicReference.compareAndSet(Object, Object).- Throws:
AttivioException
-
-