2015/07/26 - Apache DirectMemory has been retired.

For more information, please explore the Attic.

public class

CacheValuesIterable

extends Object
implements Iterable<T>
java.lang.Object
   ↳ org.apache.directmemory.utils.CacheValuesIterable<K, V>

Class Overview

A simple Iterable over CacheService's values

Summary

Public Constructors
CacheValuesIterable(CacheService<K, V> cacheService)
Creates a StrictCacheValuesIterator over cache values.
CacheValuesIterable(CacheService<K, V> cacheService, boolean strict)
Creates a iterator over cache values.
Public Methods
Iterator<V> iterator()
[Expand]
Inherited Methods
From class java.lang.Object
From interface java.lang.Iterable

Public Constructors

public CacheValuesIterable (CacheService<K, V> cacheService)

Creates a StrictCacheValuesIterator over cache values.

public CacheValuesIterable (CacheService<K, V> cacheService, boolean strict)

Creates a iterator over cache values.

Parameters
cacheService the CacheService on whose values this will iterate
strict When true the resulting iterator might returns expired or stalled values. Please see NonStrictCacheValuesIterator for details

Public Methods

public Iterator<V> iterator ()