|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface QuiesceManager
Interface for the quiesce manager. A quiesce manager provides the functionality to stop
bundles in such a manner that currently running work can be safely finished. To exploit this
above the quiesce manager individual containers / extenders (such as blueprint, jpa etc) need to
quiesce aware and register QuiesceParticipant
appropriately.
Method Summary | |
---|---|
void |
quiesce(List<Bundle> bundlesToQuiesce)
Request a collection of bundles to be quiesced using the default timeout |
void |
quiesce(long timeout,
List<Bundle> bundlesToQuiesce)
Request a collection of bundles to be quiesced |
Future<?> |
quiesceWithFuture(List<Bundle> bundlesToQuiesce)
Request a collection of bundles to be quiesced like quiesce(long, List<Bundle>)
return a Future that the caller can block on instead of void |
Future<?> |
quiesceWithFuture(long timeout,
List<Bundle> bundlesToQuiesce)
Request a collection of bundles to be quiesced like quiesce(long, List<Bundle>)
return a Future that the caller can block on instead of void |
Method Detail |
---|
void quiesce(long timeout, List<Bundle> bundlesToQuiesce)
timeout
- time to wait (in milliseconds) for all the quiesce participants to finish
before stopping the bundles. If some quiesce participants do not finish within the given timeout the bundles
are stopped regardless at the timeoutbundlesToQuiesce
- void quiesce(List<Bundle> bundlesToQuiesce)
bundlesToQuiesce
- Future<?> quiesceWithFuture(List<Bundle> bundlesToQuiesce)
quiesce(long, List<Bundle>)
return a Future
that the caller can block on instead of void
bundlesToQuiesce
-
Future
that captures the execution of quiesce. The returned Future
does
not support the cancel operation.Future<?> quiesceWithFuture(long timeout, List<Bundle> bundlesToQuiesce)
quiesce(long, List<Bundle>)
return a Future
that the caller can block on instead of void
timeout
- time to wait (in milliseconds) for all the quiesce participants to finish
before stopping the bundles. If some quiesce participants do not finish within the given timeout the bundles
are stopped regardless at the timeoutbundlesToQuiesce
-
Future
that captures the execution of quiesce. The returned Future
does
not support the cancel operation.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |