org.apache.xbean.kernel
Class StopStrategies

java.lang.Object
  extended by org.apache.xbean.kernel.StopStrategies

public final class StopStrategies
extends Object

This class contains the built-in common stop startegies.

Since:
2.0
Author:
Dain Sundstrom

Field Summary
static StopStrategy ASYNCHRONOUS
          This strategy attempts to stop the service asynchronously.
static StopStrategy BLOCK
          This strategy wait until the service stops.
static StopStrategy FORCE
          This strategy forceable stops the service.
static StopStrategy SYNCHRONOUS
          This strategy attempts to immedately stop the service.
 
Method Summary
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

SYNCHRONOUS

public static final StopStrategy SYNCHRONOUS
This strategy attempts to immedately stop the service. When there are unsatisfied conditions, this strategy will leave the service in the STOPPING state, and throw an UnsatisfiedConditionsException to the caller.


ASYNCHRONOUS

public static final StopStrategy ASYNCHRONOUS
This strategy attempts to stop the service asynchronously. When there are unsatisfied conditions, this strategy will leave the service in the STOPPING state, and caller will not recieve any exceptions.


BLOCK

public static final StopStrategy BLOCK
This strategy wait until the service stops. This strategy blocks until all unsatisfied conditons are satisfied.


FORCE

public static final StopStrategy FORCE
This strategy forceable stops the service. This strategy ignores all unsatisfied conditons.



Copyright © 2005-2008 Apache Software Foundation. All Rights Reserved.