@FunctionalInterface @JsFunction public interface Mutation
A Mutation object is used to execute code asynchronously, at the next mutating phase of Presto's cycle.
Presto's state associated with the measuring phase: (Presto.State.MUTATING
).
Usage: Call Presto#scheduleMutation(Measure)
with a Mutation object instance or a lambda expression.
Modifier and Type | Method and Description |
---|---|
void |
mutate()
Execute the mutation asynchronously.
|
void mutate()
IllegalStateException
if a measure is attempted.IllegalStateException
- if the code tries to measure (read) the DOMCopyright © 2018 Xalys. All rights reserved.