public class FlagUpdate extends Object implements DatatypeUpdate
When building an UpdateMap command
this class is used to encapsulate the update to be performed on a
Riak flag datatype contained in the map. It is used in conjunction with the
MapUpdate.
| Constructor and Description |
|---|
FlagUpdate()
Construct a FlagUpdate with the default disabled (false) value.
|
FlagUpdate(boolean flag)
Construct a FlagUpdate.
|
| Modifier and Type | Method and Description |
|---|---|
FlagOp |
getOp()
Returns the core update.
|
boolean |
isEnabled()
Return the value of this FlagUpdate.
|
public FlagUpdate(boolean flag)
flag - true to enable, false to disable.public FlagUpdate()
public boolean isEnabled()
public FlagOp getOp()
getOp in interface DatatypeUpdateCopyright © 2015. All rights reserved.