Skip navigation links

Oracle® Coherence Java API Reference
Release 3.7.1.0

E22843-01


com.tangosol.util
Class WrapperCollections.ConcurrentWrapperSet

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

All Implemented Interfaces:
java.lang.Iterable, java.util.Collection, java.util.Set
Direct Known Subclasses:
WrapperCollections.ConcurrentWrapperEntrySet
Enclosing class:
WrapperCollections

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

Set implementation which uses a ReadWriteLock to manage concurrent access to an underlying Set.

Since:
Coherence 3.7

Field Summary

 

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

 

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

 

Method Summary
protected  java.util.Set getDelegate()
          Return the Set to which all operations should be delegated to.

 

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

 

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

 

Constructor Detail

WrapperCollections.ConcurrentWrapperSet

public WrapperCollections.ConcurrentWrapperSet(java.util.Set set)
Create an ConcurrentWrapperSet which delegates to the specified Set.
Parameters:
set - the Set to delegate all calls to

WrapperCollections.ConcurrentWrapperSet

protected WrapperCollections.ConcurrentWrapperSet(java.util.Set set,
                                                  java.util.concurrent.locks.ReadWriteLock lock)
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

Method Detail

getDelegate

protected java.util.Set getDelegate()
Return the Set to which all operations should be delegated to.
Overrides:
getDelegate in class WrapperCollections.ConcurrentWrapperCollection
Returns:
the wrapped Set

Skip navigation links

Oracle® Coherence Java API Reference
Release 3.7.1.0

E22843-01


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