public enum SignalPolicy extends java.lang.Enum<SignalPolicy>
Application| Enum Constant and Description |
|---|
HandleSignals
If a signal is received,
Application reacts to the signal
by calling Communicator.destroy() or Communicator.shutdown(),
or by calling a custom shutdown hook installed by the application. |
NoSignalHandling
Any signal that is received is not intercepted and takes the default
action.
|
| Modifier and Type | Method and Description |
|---|---|
static SignalPolicy |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static SignalPolicy[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final SignalPolicy HandleSignals
Application reacts to the signal
by calling Communicator.destroy() or Communicator.shutdown(),
or by calling a custom shutdown hook installed by the application.public static final SignalPolicy NoSignalHandling
public static SignalPolicy[] values()
for (SignalPolicy c : SignalPolicy.values()) System.out.println(c);
public static SignalPolicy valueOf(java.lang.String name)
name - the name of the enum constant to be returned.java.lang.IllegalArgumentException - if this enum type has no constant with the specified namejava.lang.NullPointerException - if the argument is null