com.neeve.toa
Enum TopicOrientedApplication.ChannelJoin

java.lang.Object
  extended by java.lang.Enum<TopicOrientedApplication.ChannelJoin>
      extended by com.neeve.toa.TopicOrientedApplication.ChannelJoin
All Implemented Interfaces:
Serializable, Comparable<TopicOrientedApplication.ChannelJoin>
Enclosing class:
TopicOrientedApplication

public static enum TopicOrientedApplication.ChannelJoin
extends Enum<TopicOrientedApplication.ChannelJoin>

Enumerates the channel join options that a ChannelJoinProvider can specify.


Enum Constant Summary
Default
          Indicates that the provider has no opinion and will defer to the default behavior of Hornet or other ChannelJoinProviders When no channel join behavior is otherwise specified Hornet will join a channel if there is EventHandler for a message type mapped to it in a service definition.
Join
          Indicates that a channel should be joined even if there are no message handlers present for types mapped to the channel.
NoJoin
          Indicates that a channel should not be joined regardless of whether or not there are message handlers present for types mapped to the channel.
 
Method Summary
static TopicOrientedApplication.ChannelJoin valueOf(String name)
          Returns the enum constant of this type with the specified name.
static TopicOrientedApplication.ChannelJoin[] 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

Default

public static final TopicOrientedApplication.ChannelJoin Default
Indicates that the provider has no opinion and will defer to the default behavior of Hornet or other ChannelJoinProviders

When no channel join behavior is otherwise specified Hornet will join a channel if there is EventHandler for a message type mapped to it in a service definition.


NoJoin

public static final TopicOrientedApplication.ChannelJoin NoJoin
Indicates that a channel should not be joined regardless of whether or not there are message handlers present for types mapped to the channel.


Join

public static final TopicOrientedApplication.ChannelJoin Join
Indicates that a channel should be joined even if there are no message handlers present for types mapped to the channel.

Method Detail

values

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

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

valueOf

public static TopicOrientedApplication.ChannelJoin 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.