public static enum SimEntity.UnknownNotificationTypePolicy extends Enum<SimEntity.UnknownNotificationTypePolicy>
| Enum Constant and Description |
|---|
ERROR
Unknown notification types lead to an error (exception).
|
FIRE_AND_WARN
Unknown notification types are fired as
SimEntityListener.notifyStateChanged(double, org.javades.jqueues.r5.entity.SimEntity, java.util.List<java.util.Map<org.javades.jqueues.r5.entity.SimEntitySimpleEventType.Member, org.javades.jqueues.r5.entity.SimEntityEvent>>),
but a warning is issued in the log at Level.WARNING. |
FIRE_SILENTLY
Unknown notification types are fired (otherwise silently) as
SimEntityListener.notifyStateChanged(double, org.javades.jqueues.r5.entity.SimEntity, java.util.List<java.util.Map<org.javades.jqueues.r5.entity.SimEntitySimpleEventType.Member, org.javades.jqueues.r5.entity.SimEntityEvent>>). |
| Modifier and Type | Method and Description |
|---|---|
static SimEntity.UnknownNotificationTypePolicy |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static SimEntity.UnknownNotificationTypePolicy[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final SimEntity.UnknownNotificationTypePolicy FIRE_AND_WARN
SimEntityListener.notifyStateChanged(double, org.javades.jqueues.r5.entity.SimEntity, java.util.List<java.util.Map<org.javades.jqueues.r5.entity.SimEntitySimpleEventType.Member, org.javades.jqueues.r5.entity.SimEntityEvent>>),
but a warning is issued in the log at Level.WARNING.
This is the default.
public static final SimEntity.UnknownNotificationTypePolicy FIRE_SILENTLY
SimEntityListener.notifyStateChanged(double, org.javades.jqueues.r5.entity.SimEntity, java.util.List<java.util.Map<org.javades.jqueues.r5.entity.SimEntitySimpleEventType.Member, org.javades.jqueues.r5.entity.SimEntityEvent>>).public static final SimEntity.UnknownNotificationTypePolicy ERROR
public static SimEntity.UnknownNotificationTypePolicy[] values()
for (SimEntity.UnknownNotificationTypePolicy c : SimEntity.UnknownNotificationTypePolicy.values()) System.out.println(c);
public static SimEntity.UnknownNotificationTypePolicy valueOf(String name)
name - the name of the enum constant to be returned.IllegalArgumentException - if this enum type has no constant with the specified nameNullPointerException - if the argument is nullCopyright © 2018. All rights reserved.