org.cipango.diameter.base
Enum Common.DisconnectCause

java.lang.Object
  extended by java.lang.Enum<Common.DisconnectCause>
      extended by org.cipango.diameter.base.Common.DisconnectCause
All Implemented Interfaces:
java.io.Serializable, java.lang.Comparable<Common.DisconnectCause>
Enclosing class:
Common

public static enum Common.DisconnectCause
extends java.lang.Enum<Common.DisconnectCause>


Enum Constant Summary
BUSY
          1 The peer's internal resources are constrained, and it has determined that the transport connection needs to be closed.
DO_NOT_WANT_TO_TALK_TO_YOU
          2 The peer has determined that it does not see a need for the transport connection to exist, since it does not expect any messages to be exchanged in the near future.
REBOOTING
          0 A scheduled reboot is imminent.
 
Method Summary
static Common.DisconnectCause valueOf(java.lang.String name)
          Returns the enum constant of this type with the specified name.
static Common.DisconnectCause[] 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

REBOOTING

public static final Common.DisconnectCause REBOOTING
0 A scheduled reboot is imminent.


BUSY

public static final Common.DisconnectCause BUSY
1 The peer's internal resources are constrained, and it has determined that the transport connection needs to be closed.


DO_NOT_WANT_TO_TALK_TO_YOU

public static final Common.DisconnectCause DO_NOT_WANT_TO_TALK_TO_YOU
2 The peer has determined that it does not see a need for the transport connection to exist, since it does not expect any messages to be exchanged in the near future.

Method Detail

values

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

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

valueOf

public static Common.DisconnectCause 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


Copyright © 2010. All Rights Reserved.