org.iqual.chaplin
Enum AggregationType

java.lang.Object
  extended by java.lang.Enum<AggregationType>
      extended by org.iqual.chaplin.AggregationType
All Implemented Interfaces:
Serializable, Comparable<AggregationType>

public enum AggregationType
extends Enum<AggregationType>

Determines the algorithm for obtaining a single reply value from multiple message replies.

Since:
Aug 3, 2009 10:35:39 PM
Author:
Zbynek Slajchrt

Enum Constant Summary
aggregator
          A custom aggregator is used for obtaining the reply value.
auto
          The type of aggregation is determined at the runtime by analyzing the return type of the method.
composite
          A composite is created from the multiple results.
takeFirst
          The result of the context method is always the first reply value.
takeLast
          The result of the context method is always the last reply value.
 
Method Summary
static AggregationType valueOf(String name)
          Returns the enum constant of this type with the specified name.
static AggregationType[] values()
          Returns an array containing the constants of this enum type, in the order they're declared.
 
Methods inherited from class java.lang.Enum
clone, compareTo, equals, getDeclaringClass, hashCode, name, ordinal, toString, valueOf
 
Methods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, wait
 

Enum Constant Detail

auto

public static final AggregationType auto
The type of aggregation is determined at the runtime by analyzing the return type of the method.


composite

public static final AggregationType composite
A composite is created from the multiple results.


takeFirst

public static final AggregationType takeFirst
The result of the context method is always the first reply value.


takeLast

public static final AggregationType takeLast
The result of the context method is always the last reply value.


aggregator

public static final AggregationType aggregator
A custom aggregator is used for obtaining the reply value.

Method Detail

values

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

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

valueOf

public static AggregationType 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


Copyright © 2009 iquality.org. All Rights Reserved.