public enum MsgStateEnum extends Enum<MsgStateEnum>
Enum Constant and Description |
---|
CANCEL
Message was canceled by external system or by administrator.
|
FAILED
Finally failed message, no next processing.
|
IN_QUEUE
Message is in queue and waiting for free thread for processing.
|
NEW
New saved message.
|
OK
Successfully processed message.
|
PARTLY_FAILED
Last processing ended with error, there will be next try.
|
POSTPONED
Message is postponed because there was another message that was processed at the same time
with same funnel values.
|
PROCESSING
Message is just processing.
|
WAITING
Parent message that waits for child messages.
|
WAITING_FOR_RES
Message that waits for confirmation/response from external system (e.g.
|
Modifier and Type | Method and Description |
---|---|
static boolean |
isFinal(MsgStateEnum state)
Is specified state final?
|
static boolean |
isProcessing(MsgStateEnum state)
Is specified state processing?
|
static boolean |
isRunning(MsgStateEnum state)
Is specified state running?
|
static MsgStateEnum |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static MsgStateEnum[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final MsgStateEnum NEW
public static final MsgStateEnum OK
public static final MsgStateEnum IN_QUEUE
public static final MsgStateEnum PROCESSING
public static final MsgStateEnum PARTLY_FAILED
public static final MsgStateEnum FAILED
public static final MsgStateEnum WAITING
public static final MsgStateEnum WAITING_FOR_RES
public static final MsgStateEnum POSTPONED
public static final MsgStateEnum CANCEL
public static MsgStateEnum[] values()
for (MsgStateEnum c : MsgStateEnum.values()) System.out.println(c);
public static MsgStateEnum 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 nullpublic static boolean isRunning(MsgStateEnum state)
state
- the statetrue
if state is running otherwise false
public static boolean isProcessing(MsgStateEnum state)
state
- the statetrue
if state is processing otherwise false
public static boolean isFinal(MsgStateEnum state)
state
- the statetrue
if state is final otherwise false
Copyright © 2018 Pivotal Software, Inc.. All rights reserved.