com.anji.nn
Class RecurrencyPolicy

java.lang.Object
  extended by com.anji.nn.RecurrencyPolicy

public class RecurrencyPolicy
extends java.lang.Object

Enumerated type representing policies for how to handle recurrency.

Author:
Philip Tucker

Field Summary
static RecurrencyPolicy BEST_GUESS
          recurrency allowed; recurrent connections where it seems they might be necessary
static RecurrencyPolicy DISALLOWED
          no recurrency allowed; no loops in network
static java.lang.String KEY
          properties key
static RecurrencyPolicy LAZY
          recurrency allowed; treat all connections as if they might be recurrent
 
Method Summary
 boolean equals(java.lang.Object o)
           
 int hashCode()
           
static RecurrencyPolicy load(Properties props)
          See Parameter Details for recurrent property settings.
 java.lang.String toString()
           
static RecurrencyPolicy valueOf(java.lang.String name)
           
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Field Detail

KEY

public static final java.lang.String KEY
properties key

See Also:
Constant Field Values

DISALLOWED

public static final RecurrencyPolicy DISALLOWED
no recurrency allowed; no loops in network


BEST_GUESS

public static final RecurrencyPolicy BEST_GUESS
recurrency allowed; recurrent connections where it seems they might be necessary


LAZY

public static final RecurrencyPolicy LAZY
recurrency allowed; treat all connections as if they might be recurrent

Method Detail

valueOf

public static RecurrencyPolicy valueOf(java.lang.String name)
Parameters:
name -
Returns:
RecurrencyPolicy corresponding to name

load

public static RecurrencyPolicy load(Properties props)
See Parameter Details for recurrent property settings.

Parameters:
props - configuration parameter
Returns:
policy specified by props

equals

public boolean equals(java.lang.Object o)
Overrides:
equals in class java.lang.Object
See Also:
Object.equals(java.lang.Object)

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object
See Also:
Object.toString()

hashCode

public int hashCode()
Overrides:
hashCode in class java.lang.Object
See Also:
Object.hashCode()