public enum IotHubMessageResult extends java.lang.Enum<IotHubMessageResult>
See The cloud-to-device message life cycle for more details on the states and what it means for message delivery and retry.
| Enum Constant and Description |
|---|
ABANDON
Instructs IoT hub to abandon the message.
|
COMPLETE
Instructs IoT hub to complete the message.
|
REJECT
Instructs IoT hub to reject the message.
|
| Modifier and Type | Method and Description |
|---|---|
static IotHubMessageResult |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static IotHubMessageResult[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final IotHubMessageResult COMPLETE
This will remove it from the IoT hub messaging queue and set the message to the Completed state.
public static final IotHubMessageResult ABANDON
This will put the message back into the IoT hub messaging queue to be processed again. The message will be enqueued back to the IoT hub messaging queue for the value specified for "Max Delivery Count" times. After the max is reached, the message will be set to to the dead lettered state and removed.
public static final IotHubMessageResult REJECT
This will remove the message from the IoT hub messaging queue and sets the message to the dead lettered state.
public static IotHubMessageResult[] values()
for (IotHubMessageResult c : IotHubMessageResult.values()) System.out.println(c);
public static IotHubMessageResult 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 nullCopyright © 2023. All rights reserved.