org.springframework.integration.annotation
Annotation Type Polled
@Target(value={TYPE,METHOD})
@Retention(value=RUNTIME)
@Inherited
@Documented
public @interface Polled
Annotation that can be specified at class-level alongside a
@MessageEndpoint
annotation in order to provide the
scheduling information for that endpoint. Alternatively, as a method-level
annotation, this indicates that a method is capable of providing messages.
The method must not accept any parameters but can return either a single
object or collection. The enclosing class should be annotated with
@MessageEndpoint
.
- Author:
- Mark Fisher
period
public abstract int period
- Default:
- 0
initialDelay
public abstract long initialDelay
- Default:
- 0L
fixedRate
public abstract boolean fixedRate
- Default:
- false
timeUnit
public abstract java.util.concurrent.TimeUnit timeUnit
- Default:
- MILLISECONDS