Package org.teamapps.ux.component.field
Class MultiWriteLockableValue<VALUE>
java.lang.Object
org.teamapps.ux.component.field.MultiWriteLockableValue<VALUE>
public class MultiWriteLockableValue<VALUE>
extends java.lang.Object
Used to write-lock a value for client-writes, as long as not all server value changes have been applied to the client.
This code is not thread-safe since all access to ux components is sequential due to exclusive access to sessions (see
CurrentSessionContext).-
Nested Class Summary
Nested Classes Modifier and Type Class Description static interfaceMultiWriteLockableValue.Lock -
Constructor Summary
Constructors Constructor Description MultiWriteLockableValue(VALUE value) -
Method Summary
Modifier and Type Method Description booleanisLocked()VALUEread()MultiWriteLockableValue.LockwriteAndLock(VALUE value)voidwriteIfNotLocked(VALUE value)Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Constructor Details
-
MultiWriteLockableValue
-
-
Method Details
-
writeAndLock
-
writeIfNotLocked
-
isLocked
public boolean isLocked() -
read
-