org.jboss.messaging.util
Class RotatingPool
java.lang.Object
org.jboss.messaging.util.RotatingPool
- public abstract class RotatingPool
- extends java.lang.Object
A RotatingPool
This class makes sure requests on the same key always get the same value, and
values for a specific key are obtained from a fixed size array of instances in
a rotating fashion
- Version:
- $Revision: 1237 $
$Id: RotatingPool.java 1237 2006-08-30 18:36:36Z timfox $
- Author:
- Tim Fox
Field Summary |
protected java.lang.Object[] |
entries
|
protected int |
maxSize
|
protected int |
pos
|
Method Summary |
protected abstract java.lang.Object |
createEntry()
|
java.lang.Object |
get()
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
maxSize
protected int maxSize
pos
protected int pos
entries
protected java.lang.Object[] entries
RotatingPool
public RotatingPool(int maxSize)
get
public java.lang.Object get()
createEntry
protected abstract java.lang.Object createEntry()
Copyright © 2006 JBoss Inc. All Rights Reserved.