public enum AntCommandFailureReason extends java.lang.Enum<AntCommandFailureReason>
AntCommandFailedException
.Enum Constant and Description |
---|
BACKGROUND_SCAN_IN_USE
Another channel is already performing a background scan.
|
CANCELLED
The blocking operation was interrupted.
|
CHANNEL_RELEASING
The channel is releasing, and is no longer acquired by this application.
|
CHANNEL_RESPONSE
The ANT Adapter replied with a channel response including a response code that was not
"no error".
|
INVALID_REQUEST
The attempted operation is not valid for this channel in its current state.
|
IO_ERROR
There was a failure communicating with the ANT hardware.
|
TRANSFER_FAILED
The attempted transfer (Acknowledged message or Burst transfer) was not able to be sent
to the receiver.
|
TRANSFER_IN_PROGRESS
This channel is already processing an acknowledged message, or any channel is processing
a burst.
|
UNKNOWN
The service sent a failure not defined in this version of the library.
|
Modifier and Type | Method and Description |
---|---|
static AntCommandFailureReason |
create(int rawValue)
Used internally by the API to create a failure reason received from ANT
Radio Service.
|
int |
getRawValue()
Returns the raw value of this enumeration value.
|
static AntCommandFailureReason |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static AntCommandFailureReason[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final AntCommandFailureReason UNKNOWN
public static final AntCommandFailureReason IO_ERROR
public static final AntCommandFailureReason CHANNEL_RESPONSE
IAntChannelEventHandler
.public static final AntCommandFailureReason CHANNEL_RELEASING
public static final AntCommandFailureReason INVALID_REQUEST
public static final AntCommandFailureReason TRANSFER_IN_PROGRESS
public static final AntCommandFailureReason TRANSFER_FAILED
This is only triggered when processing a method which waits for the transfer result.
public static final AntCommandFailureReason BACKGROUND_SCAN_IN_USE
public static final AntCommandFailureReason CANCELLED
public static AntCommandFailureReason[] values()
for (AntCommandFailureReason c : AntCommandFailureReason.values()) System.out.println(c);
public static AntCommandFailureReason 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 nullpublic int getRawValue()
public static AntCommandFailureReason create(int rawValue)
Copyright © 2015 Dynastream Innovations Inc. All Rights Reserved.