ml.shifu.guagua
注释类型 ComputableMonitor


@Documented
@Inherited
@Target(value=TYPE)
@Retention(value=RUNTIME)
public @interface ComputableMonitor

Master and Worker computable maximal time out setting. If 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:


可选元素摘要
 long duration
          Number of time units after which the execution should be halted and default returned.
 TimeUnit timeUnit
          Time Units in which to measure timeout value.
 

timeUnit

public abstract TimeUnit timeUnit
Time Units in which to measure timeout value.

返回:
Time Units in which to measure timeout value.
默认值:
java.util.concurrent.TimeUnit.SECONDS

duration

public abstract long duration
Number of time units after which the execution should be halted and default returned.

返回:
Number of time units after which the execution should be halted or default returned.
默认值:
60L


Copyright © 2015. All Rights Reserved.