Errai 3.0.1-SNAPSHOT

org.jboss.errai.ioc.client.api
Annotation Type Timed


@Retention(value=RUNTIME)
@Target(value=METHOD)
public @interface Timed

Specifies a timed method invocation of a method on a managed bean. Timed methods are tied to the lifecycle of the bean which they are declared on. Therefore, repeating timers cannot be stopped unless the host bean is destroyed.

Author:
Mike Brock

Required Element Summary
 int interval
          The interval of the timer.
 TimeUnit timeUnit
          The time unit of the specified interval.
 TimerType type
          The type of timer to run.
 

Element Detail

type

public abstract TimerType type
The type of timer to run. Either repeating or absolute.

Returns:
the TimerType

timeUnit

public abstract TimeUnit timeUnit
The time unit of the specified interval.

Returns:
the time unit

interval

public abstract int interval
The interval of the timer.

Returns:
the interval

Errai 3.0.1-SNAPSHOT

Copyright © 2013-2014 JBoss, a division of Red Hat. All Rights Reserved.