net.conquiris.api.index
Class MutableIndexerActivationPolicy

java.lang.Object
  extended by net.conquiris.api.index.MutableIndexerActivationPolicy
All Implemented Interfaces:
IndexerActivationPolicy

@ThreadSafe
public final class MutableIndexerActivationPolicy
extends Object
implements IndexerActivationPolicy

Indexer activation policy based on a mutable boolean value.

Author:
Andres Rodriguez.

Method Summary
static MutableIndexerActivationPolicy active()
          Creates a new policy with an initial value of true.
static MutableIndexerActivationPolicy create(boolean active)
          Creates a new policy.
 boolean equals(Object obj)
           
 int hashCode()
           
static MutableIndexerActivationPolicy inactive()
          Creates a new policy with an initial value of false.
 boolean isActive()
          Returns true if the indexer is active.
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

create

public static MutableIndexerActivationPolicy create(boolean active)
Creates a new policy.

Parameters:
active - Initial value.
Returns:
The requested policy.

active

public static MutableIndexerActivationPolicy active()
Creates a new policy with an initial value of true.

Returns:
The requested policy.

inactive

public static MutableIndexerActivationPolicy inactive()
Creates a new policy with an initial value of false.

Returns:
The requested policy.

hashCode

public int hashCode()
Overrides:
hashCode in class Object

equals

public boolean equals(Object obj)
Overrides:
equals in class Object

isActive

public boolean isActive()
Description copied from interface: IndexerActivationPolicy
Returns true if the indexer is active.

Specified by:
isActive in interface IndexerActivationPolicy


Copyright © 2012 Derquinse Projects.. All Rights Reserved.