org.apache.manifoldcf.crawler.interfaces
Class QueueTracker.BinCount

java.lang.Object
  extended by org.apache.manifoldcf.crawler.interfaces.QueueTracker.BinCount
Enclosing class:
QueueTracker

protected static class QueueTracker.BinCount
extends java.lang.Object

This is the class which allows a mutable integer count value to be saved in the bincount table.


Field Summary
protected  int count
          The count
 
Constructor Summary
QueueTracker.BinCount()
          Create
 
Method Summary
 boolean decrement()
          Decrement the counter, returning true if empty
 QueueTracker.BinCount duplicate()
           
 int getValue()
          Get the counter value
 void increment()
          Increment the counter
 void setValue(int count)
          Set the counter value
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

count

protected int count
The count

Constructor Detail

QueueTracker.BinCount

public QueueTracker.BinCount()
Create

Method Detail

duplicate

public QueueTracker.BinCount duplicate()

increment

public void increment()
Increment the counter


decrement

public boolean decrement()
Decrement the counter, returning true if empty


setValue

public void setValue(int count)
Set the counter value


getValue

public int getValue()
Get the counter value