public interface LoadBalancedList<E>
| Modifier and Type | Interface and Description |
|---|---|
static class |
LoadBalancedList.Node<E> |
| Modifier and Type | Method and Description |
|---|---|
void |
clear()
Clears all entries from the list.
|
boolean |
contains(E item)
Checks if the item is already contained in this list.
|
E |
getNext()
Gets the next item to use from the list.
|
int |
getSize()
Gets the total number of items (size) of the list.
|
List<LoadBalancedList.Node<E>> |
getValues()
Gets a list of all nodes.
|
void |
remove(E item)
Removes an item from the list.
|
void |
set(E item,
int weight)
Adds the item to the list if it doesn't yet exist.
|
List<LoadBalancedList.Node<E>> getValues()
void clear()
boolean contains(E item)
item - The item to check for in listE getNext()
int getSize()
void remove(E item)
item - The item to remove.void set(E item, int weight)
item - The item to add or setweight - The new weight of the itemCopyright © 2012-2015 Cloudhopper by Twitter. All Rights Reserved.