org.axonframework.commandhandling.gateway
Annotation Type Timeout


@Target(value={METHOD,TYPE})
@Retention(value=RUNTIME)
public @interface Timeout

Class or method level annotation that indicates the calling thread should not wait longer than the provided timeout for the results of a command.

Since:
2.0
Author:
Allard Buijze

Required Element Summary
 int value
          Indicates the amount of time the dispatching thread may wait for a result.
 
Optional Element Summary
 TimeUnit unit
          Indicates the unit in which the timeout is declared.
 

Element Detail

value

public abstract int value
Indicates the amount of time the dispatching thread may wait for a result.

unit

public abstract TimeUnit unit
Indicates the unit in which the timeout is declared. Defaults to milliseconds.

Default:
java.util.concurrent.TimeUnit.MILLISECONDS


Copyright © 2010-2016. All Rights Reserved.