net.rim.pushsdk.pushappmgmt
Enum PushApplicationServiceLevel

java.lang.Object
  extended by java.lang.Enum<PushApplicationServiceLevel>
      extended by net.rim.pushsdk.pushappmgmt.PushApplicationServiceLevel
All Implemented Interfaces:
Serializable, Comparable<PushApplicationServiceLevel>

public enum PushApplicationServiceLevel
extends Enum<PushApplicationServiceLevel>

The service level of a push application.

Push Essentials is less reliable, but more performance effective than Push Plus. With Push Essentials, push requests cannot be stored, no acknowledgement is allowed, application-level reliability is not supported, and status query is not supported.

Author:
mdicesare

Enum Constant Summary
PUSH_ESSENTIALS
           
PUSH_PLUS
           
 
Method Summary
 String getServiceLevel()
          Get the current service level.
static PushApplicationServiceLevel getServiceLevel(String serviceLevel)
          Get the service level associated with the passed in string.
 String toString()
          Returns a textual description of the service level.
static PushApplicationServiceLevel valueOf(String name)
          Returns the enum constant of this type with the specified name.
static PushApplicationServiceLevel[] 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, valueOf
 
Methods inherited from class java.lang.Object
getClass, notify, notifyAll, wait, wait, wait
 

Enum Constant Detail

PUSH_ESSENTIALS

public static final PushApplicationServiceLevel PUSH_ESSENTIALS

PUSH_PLUS

public static final PushApplicationServiceLevel PUSH_PLUS
Method Detail

values

public static PushApplicationServiceLevel[] 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 (PushApplicationServiceLevel c : PushApplicationServiceLevel.values())
    System.out.println(c);

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

valueOf

public static PushApplicationServiceLevel valueOf(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:
IllegalArgumentException - if this enum type has no constant with the specified name
NullPointerException - if the argument is null

getServiceLevel

public String getServiceLevel()
Get the current service level.

Returns:
the current service level

getServiceLevel

public static PushApplicationServiceLevel getServiceLevel(String serviceLevel)
Get the service level associated with the passed in string.

Parameters:
serviceLevel - a service level
Returns:
a push application service level matching the string passed in
Throws:
IllegalArgumentException - if the service level passed in is invalid

toString

public String toString()
Returns a textual description of the service level.

Overrides:
toString in class Enum<PushApplicationServiceLevel>


Copyright © 2011 Research In Motion. All Rights Reserved.