package omq.client.annotation; import java.lang.annotation.ElementType; import java.lang.annotation.Retention; import java.lang.annotation.RetentionPolicy; import java.lang.annotation.Target; /** * Annotation which indicates a method as Synchronous. It can have two * parameters: timeout and retry which will give you how long you have to wait a * synchronous method and how many times you'll wait for the response. * * @author Sergi Toda * */ @Retention(RetentionPolicy.RUNTIME) @Target(ElementType.METHOD) public @interface SyncMethod { long timeout() default 60000L; int retry() default 1; }