esmska.data
Enum Queue.Events

java.lang.Object
  extended by java.lang.Enum<Queue.Events>
      extended by esmska.data.Queue.Events
All Implemented Interfaces:
java.io.Serializable, java.lang.Comparable<Queue.Events>
Enclosing class:
Queue

public static enum Queue.Events
extends java.lang.Enum<Queue.Events>


Enum Constant Summary
NEW_SMS_READY
          Existing sms is now ready for sending.
QUEUE_CLEARED
          All sms's removed.
QUEUE_PAUSED
          Queue has been paused.
QUEUE_RESUMED
          Queue has been resumed.
SENDING_SMS
          Existing sms is now being sent.
SMS_ADDED
          New sms added.
SMS_POSITION_CHANGED
          The postition of sms in the queue changed.
SMS_REMOVED
          Existing sms removed.
SMS_SENDING_FAILED
          Existing sms failed to be sent.
SMS_SENT
          Existing sms has been sent.
 
Method Summary
static Queue.Events valueOf(java.lang.String name)
          Returns the enum constant of this type with the specified name.
static Queue.Events[] values()
          Returns an array containing the constants of this enum type, in the order they are declared.
 
Methods inherited from class java.lang.Enum
clone, compareTo, equals, finalize, getDeclaringClass, hashCode, name, ordinal, toString, valueOf
 
Methods inherited from class java.lang.Object
getClass, notify, notifyAll, wait, wait, wait
 

Enum Constant Detail

SMS_ADDED

public static final Queue.Events SMS_ADDED
New sms added. Event value: added sms.


SMS_REMOVED

public static final Queue.Events SMS_REMOVED
Existing sms removed. Event value: removed sms.


QUEUE_CLEARED

public static final Queue.Events QUEUE_CLEARED
All sms's removed. Event value: null.


SMS_POSITION_CHANGED

public static final Queue.Events SMS_POSITION_CHANGED
The postition of sms in the queue changed. Event value: moved sms.


NEW_SMS_READY

public static final Queue.Events NEW_SMS_READY
Existing sms is now ready for sending. Event value: ready sms.


SENDING_SMS

public static final Queue.Events SENDING_SMS
Existing sms is now being sent. Event value: sms being sent.


SMS_SENT

public static final Queue.Events SMS_SENT
Existing sms has been sent. Event value: sent sms.


SMS_SENDING_FAILED

public static final Queue.Events SMS_SENDING_FAILED
Existing sms failed to be sent. Event value: failed sms.


QUEUE_PAUSED

public static final Queue.Events QUEUE_PAUSED
Queue has been paused. Event value: null.


QUEUE_RESUMED

public static final Queue.Events QUEUE_RESUMED
Queue has been resumed. Event value: null.

Method Detail

values

public static Queue.Events[] values()
Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:
for (Queue.Events c : Queue.Events.values())
    System.out.println(c);

Returns:
an array containing the constants of this enum type, in the order they are declared

valueOf

public static Queue.Events valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)

Parameters:
name - the name of the enum constant to be returned.
Returns:
the enum constant with the specified name
Throws:
java.lang.IllegalArgumentException - if this enum type has no constant with the specified name
java.lang.NullPointerException - if the argument is null