com.neeve.sma
Enum MessageBusBinding.State

java.lang.Object
  extended by java.lang.Enum<MessageBusBinding.State>
      extended by com.neeve.sma.MessageBusBinding.State
All Implemented Interfaces:
Serializable, Comparable<MessageBusBinding.State>
Enclosing interface:
MessageBusBinding

public static enum MessageBusBinding.State
extends Enum<MessageBusBinding.State>

Enumerates the different binding states


Enum Constant Summary
Closed
          Indicates that a binding has been closed.
Closing
          Indicates that a binding is in the process of being closed.
Failed
          Indicates that a binding has failed.
Open
          Indicates that a binding is open and ready for operation.
 
Method Summary
static MessageBusBinding.State valueOf(String name)
          Returns the enum constant of this type with the specified name.
static MessageBusBinding.State[] values()
          Returns an array containing the constants of this enum type, in the order they are declared.
 
Methods inherited from class java.lang.Enum
compareTo, equals, getDeclaringClass, hashCode, name, ordinal, toString, valueOf
 
Methods inherited from class java.lang.Object
getClass, notify, notifyAll, wait, wait, wait
 

Enum Constant Detail

Open

public static final MessageBusBinding.State Open
Indicates that a binding is open and ready for operation.


Closing

public static final MessageBusBinding.State Closing
Indicates that a binding is in the process of being closed.

A binding transitions to this state when a close has been initiated by the user.


Failed

public static final MessageBusBinding.State Failed
Indicates that a binding has failed.

A binding transitions to this state when it fails and before it dispatches the failure event. This state can only be set in bindings that supports failure i.e. if the MessageBusBinding.canFail() returns true.


Closed

public static final MessageBusBinding.State Closed
Indicates that a binding has been closed.

A binding transitions to this state when closed by the user.

Method Detail

values

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

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

valueOf

public static MessageBusBinding.State 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


Copyright © 2016 Neeve Research, LLC. All Rights Reserved.