@Documented @Target(value=METHOD) @Retention(value=RUNTIME) public @interface Asynchronous
interface Foo {
void bar();
@Asynchronous
void zot();
}
Foo foo = getSomeRemoteReferenceToFoo();
// this invocation calls a remote method, wait for that to complete,
// then return.
foo.bar();
// this invocation returns immediately after the request to execute a remote method
// is sent to the other side. There's no ordering guarantee as to when
// this method actually gets executed. For example, if you invoke two async
// calls, they may execute in the reverse order.
foo.zot();
Channel.callAsync(Callable)Copyright © 2004–2017. All rights reserved.