Interface PropertyUpdateClosure
-
public interface PropertyUpdateClosureClosure of cluster wide update of distributed property.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description GridFutureAdapter<?>casUpdate(String key, Serializable expectedValue, Serializable newValue)Update property on cluster using compare and set way.GridFutureAdapter<?>update(String key, Serializable newValue)Update property on cluster.
-
-
-
Method Detail
-
update
GridFutureAdapter<?> update(String key, Serializable newValue) throws IgniteCheckedException
Update property on cluster.- Parameters:
key- Property key.newValue- New value.- Returns:
- Future this boolean value.
- Throws:
IgniteCheckedException- if failed.
-
casUpdate
GridFutureAdapter<?> casUpdate(String key, Serializable expectedValue, Serializable newValue) throws IgniteCheckedException
Update property on cluster using compare and set way.- Parameters:
key- Property key.expectedValue- Expected value for CAS.newValue- New value.- Returns:
- Future this boolean value. * @throws IgniteCheckedException if failed.
- Throws:
IgniteCheckedException
-
-