@Documented @Inherited @Target(value=TYPE) @Retention(value=RUNTIME) public @interface ComputableMonitor
ComputableMonitor is attached with master or worker
computable function, null will return if over time out setting. Worker result should be checked by null in
MasterContext or master result should be checked by null in WorkerContext.
Please check this example:
| Modifier and Type | Optional Element and Description |
|---|---|
long |
duration
Number of time units after which the execution should be halted and default returned.
|
boolean |
isSoft
Soft means to return null if worker or master is time out.
|
TimeUnit |
timeUnit
Time Units in which to measure timeout value.
|
public abstract TimeUnit timeUnit
Copyright © 2019. All Rights Reserved.