Skip navigation links

Oracle® Coherence Java API Reference
Release 3.7.0.0

E18683-01


com.tangosol.util
Class WrapperCollections.ConcurrentWrapperEntrySet

java.lang.Object
  extended by com.tangosol.util.WrapperCollections.ConcurrentWrapperCollection
      extended by com.tangosol.util.WrapperCollections.ConcurrentWrapperSet
          extended by com.tangosol.util.WrapperCollections.ConcurrentWrapperEntrySet

All Implemented Interfaces:
java.lang.Iterable, java.util.Collection, java.util.Set
Enclosing class:
WrapperCollections

public static class WrapperCollections.ConcurrentWrapperEntrySet
extends WrapperCollections.ConcurrentWrapperSet
implements java.util.Set

Map Entry Set implementation which uses a ReadWriteLock to manage concurrent access to the underlying Entry objects.

Since:
Coherence 3.7

Field Summary
protected  boolean m_fStrict
          Determines whether or not all of the Entry methods are protected; if set to true, then all Entry methods are protected.

 

Fields inherited from class com.tangosol.util.WrapperCollections.ConcurrentWrapperCollection
m_colDelegate, m_lock, m_lockExclusive, m_lockShared

 

Constructor Summary
protected WrapperCollections.ConcurrentWrapperEntrySet(java.util.Set set, java.util.concurrent.locks.ReadWriteLock lock, boolean fStrict)
          Create an ConcurrentWrapperSet which delegates to the specified Set.

 

Method Summary
 java.util.Iterator iterator()
          Returns an iterator over the elements in this collection.

 

Methods inherited from class com.tangosol.util.WrapperCollections.ConcurrentWrapperSet
getDelegate

 

Methods inherited from class com.tangosol.util.WrapperCollections.ConcurrentWrapperCollection
add, addAll, clear, contains, containsAll, equals, getLock, hashCode, isEmpty, remove, removeAll, retainAll, size, toArray, toArray, toString

 

Methods inherited from interface java.util.Set
add, addAll, clear, contains, containsAll, equals, hashCode, isEmpty, remove, removeAll, retainAll, size, toArray, toArray

 

Field Detail

m_fStrict

protected final boolean m_fStrict
Determines whether or not all of the Entry methods are protected; if set to true, then all Entry methods are protected.

Constructor Detail

WrapperCollections.ConcurrentWrapperEntrySet

protected WrapperCollections.ConcurrentWrapperEntrySet(java.util.Set set,
                                                       java.util.concurrent.locks.ReadWriteLock lock,
                                                       boolean fStrict)
Create an ConcurrentWrapperSet which delegates to the specified Set.
Parameters:
set - the Set to delegate all calls to
lock - a read/write lock for concurrency management
fStrict - pass true to protect all Entry methods; false to protect only the setValue() method

Method Detail

iterator

public java.util.Iterator iterator()
Returns an iterator over the elements in this collection. There are no guarantees concerning the order in which the elements are returned (unless this collection is an instance of some class that provides a guarantee).
Specified by:
iterator in interface java.lang.Iterable
Specified by:
iterator in interface java.util.Collection
Specified by:
iterator in interface java.util.Set
Overrides:
iterator in class WrapperCollections.ConcurrentWrapperCollection
Returns:
an Iterator over the elements in this collection

Skip navigation links

Oracle® Coherence Java API Reference
Release 3.7.0.0

E18683-01


Copyright © 2000, 2011, Oracle and/or its affiliates. All rights reserved.