ehcache

net.sf.ehcache.constructs.nonstop.concurrency
Class NonStopCacheKeySet

java.lang.Object
  extended by java.util.AbstractCollection<E>
      extended by java.util.AbstractList
          extended by net.sf.ehcache.constructs.nonstop.concurrency.NonStopCacheKeySet
All Implemented Interfaces:
Iterable, Collection, List

public class NonStopCacheKeySet
extends AbstractList

implementation which does not block threads when the cluster goes down

Author:
rsingh

Field Summary
 
Fields inherited from class java.util.AbstractList
modCount
 
Constructor Summary
NonStopCacheKeySet(NonstopActiveDelegateHolder nonstopActiveDelegateHolder, List keys)
          Non stop store to iterate over key set
 
Method Summary
 Object get(int index)
          
 Iterator iterator()
          Iterator to iterate over the key set May time out
 int size()
          
 
Methods inherited from class java.util.AbstractList
add, add, addAll, clear, equals, hashCode, indexOf, lastIndexOf, listIterator, listIterator, remove, removeRange, set, subList
 
Methods inherited from class java.util.AbstractCollection
addAll, contains, containsAll, isEmpty, remove, removeAll, retainAll, toArray, toArray, toString
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface java.util.List
addAll, contains, containsAll, isEmpty, remove, removeAll, retainAll, toArray, toArray
 

Constructor Detail

NonStopCacheKeySet

public NonStopCacheKeySet(NonstopActiveDelegateHolder nonstopActiveDelegateHolder,
                          List keys)
Non stop store to iterate over key set

Parameters:
nonstopActiveDelegateHolder -
list -
Method Detail

iterator

public Iterator iterator()
Iterator to iterate over the key set May time out

Specified by:
iterator in interface Iterable
Specified by:
iterator in interface Collection
Specified by:
iterator in interface List
Overrides:
iterator in class AbstractList

size

public int size()

Specified by:
size in interface Collection
Specified by:
size in interface List
Specified by:
size in class AbstractCollection

get

public Object get(int index)

Specified by:
get in interface List
Specified by:
get in class AbstractList

ehcache

Copyright © 2003-2014 Terracotta, Inc.. All Rights Reserved.