@Documented @Target(value=METHOD) @Retention(value=RUNTIME) public @interface Async
Add this annotation to the method you want to execute asynchronously.
Methods of return type void
and java.util.concurrent.Future
are supported. In the latter case, an actual asynchronous Future will be
returned, but the target method should return a temporary {@code Future}
that passes the value through as the return type needs to be the same.
Usage with other return types may cause unexpected behavior (because
{@code NULL} will always be returned).
Copyright © 2012–2014 jcabi.com. All rights reserved.