|
||||||||
PREV NEXT | FRAMES NO FRAMES |
call()
,
whether or not it was successful.
call()
can be called.
before()
,
BeforeAfterCallable.call()
, and
after()
,
to be run in what is known as the before/after pattern,
which goes like this:
before();
try { result = call(); }
finally { after(); }
BeforeAfterCallable
interface is used with
BeforeAfterCaller
to run call()
in another thread.proceed()
method,
which triggers BeforeAfterCaller
to proceed with calling BeforeAfterCallable.call()
.BeforeAfterCallable
using an Executor
.Executor
that creates a separate worker thread.
Executor
.
Executor
.
BeforeAfterCaller.submit()
.CyclicBarrier
times out:
60000 milliseconds.
after()
.
before()
after BeforeAfterCallable.AllowCallToProceed.proceed()
was called.
Executor
.
BeforeAfterCallable
associated with this
.
BeforeAfterCallable.call()
to be called.
BeforeAfterCallable
to be executed
by the Executor
.
|
||||||||
PREV NEXT | FRAMES NO FRAMES |