|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface AsyncPostConstruct
Some service's PostConstruct may optionally spawn internal initializations on separate threads.
In such situations, the service might block when methods are called on it until which time the service is fully initialized based on it's async-based initialization / operations. This is an extension toPostConstruct that should
be used in such situations.
| Method Summary | |
|---|---|
boolean |
isDone()
Returns true if the service is fully ready to have methods called on it. |
void |
waitForDone()
The implementation should block until the service is fully ready / initialized. |
boolean |
waitForDone(long timeout,
TimeUnit unit)
The implementation should return true immediately if the service is fully ready / initialized. |
| Methods inherited from interface org.glassfish.hk2.PostConstruct |
|---|
postConstruct |
| Method Detail |
|---|
boolean isDone()
void waitForDone()
throws ExecutionException,
TimeoutException,
InterruptedException
ExecutionException
TimeoutException
InterruptedException
boolean waitForDone(long timeout,
TimeUnit unit)
throws ExecutionException,
InterruptedException
TimeoutException and return
false instead of throwing.
ExecutionException
InterruptedException
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||