Skip to content

Commit

Permalink
Closed #337 Clarified Iterator and removed reference to non-existent …
Browse files Browse the repository at this point in the history
…read listener.
  • Loading branch information
gregrluck committed May 14, 2016
1 parent cacc480 commit 3aae414
Showing 1 changed file with 6 additions and 5 deletions.
11 changes: 6 additions & 5 deletions src/main/java/javax/cache/Cache.java
Original file line number Diff line number Diff line change
Expand Up @@ -802,12 +802,13 @@ void deregisterCacheEntryListener(CacheEntryListenerConfiguration<K, V>
* <p>
* The ordering of iteration over entries is undefined.
* <p>
* During iteration, any entries that are a). read will have their appropriate
* CacheEntryReadListeners notified and b). removed will have their appropriate
* CacheEntryRemoveListeners notified.
* During iteration, any entries that are removed will have their appropriate
* CacheEntryRemovedListeners notified.
* <p>
* {@link java.util.Iterator#next()} may return null if the entry is no
* longer present, has expired or has been evicted.
* When iterating over a cache it must be assumed that the underlying
* cache may be changing, with entries being added, removed, evicted
* and expiring. {@link java.util.Iterator#next()} may therefore return
* null.
*
* @throws IllegalStateException if the cache is {@link #isClosed()}
*/
Expand Down

0 comments on commit 3aae414

Please sign in to comment.