com.iparelan.util
Enum ConcurrencyTools.Shutdownable.ShutdownClosingPolicy
java.lang.Object
java.lang.Enum<ConcurrencyTools.Shutdownable.ShutdownClosingPolicy>
com.iparelan.util.ConcurrencyTools.Shutdownable.ShutdownClosingPolicy
- All Implemented Interfaces:
- Serializable, Comparable<ConcurrencyTools.Shutdownable.ShutdownClosingPolicy>
- Enclosing interface:
- ConcurrencyTools.Shutdownable
public static enum ConcurrencyTools.Shutdownable.ShutdownClosingPolicy
- extends Enum<ConcurrencyTools.Shutdownable.ShutdownClosingPolicy>
Specifies the policy to execute when ConcurrencyTools.Shutdownable.shutdown()
is
called. Call close()
if the policy is CLOSE
,
otherwise do not call close()
if the policy is DO_NOT_CLOSE
. This policy is moot if no close()
method
exists.
- See Also:
Closeable
CLOSE
public static final ConcurrencyTools.Shutdownable.ShutdownClosingPolicy CLOSE
DO_NOT_CLOSE
public static final ConcurrencyTools.Shutdownable.ShutdownClosingPolicy DO_NOT_CLOSE
values
public static ConcurrencyTools.Shutdownable.ShutdownClosingPolicy[] values()
- Returns an array containing the constants of this enum type, in
the order they are declared. This method may be used to iterate
over the constants as follows:
for (ConcurrencyTools.Shutdownable.ShutdownClosingPolicy c : ConcurrencyTools.Shutdownable.ShutdownClosingPolicy.values())
System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in
the order they are declared
valueOf
public static ConcurrencyTools.Shutdownable.ShutdownClosingPolicy valueOf(String name)
- Returns the enum constant of this type with the specified name.
The string must match exactly an identifier used to declare an
enum constant in this type. (Extraneous whitespace characters are
not permitted.)
- Parameters:
name
- the name of the enum constant to be returned.
- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException
- if this enum type has no constant
with the specified name
NullPointerException
- if the argument is null
Copyright © 2008 Iparelan Solutions, LLC. All rights reserved.