org.terracotta.collections.quartz
Class DistributedSortedSet<E>

java.lang.Object
  extended by org.terracotta.collections.quartz.DistributedSortedSet<E>

Deprecated.

@Deprecated
public class DistributedSortedSet<E>
extends Object

This class is a bit of a hack :-). It is meant to serve as a replacement TreeSet. Since we can't use TreeSet directly in the "express" context this class is used instead. It extends from HashSet for two reasons: (1) So that there will be a state implementation on the L2 already and (2) So that the L1 applicator will call the regular Set add() and remove() calls. When updates are received from the network, we re-materialize the objects and place them in a locally sorted set

The synchronization in this class is local only (ie. not 'd). It is assumed the higher order distributed locking is in the caller


Nested Class Summary
static interface DistributedSortedSet.Element<K>
          Deprecated.  
 
Constructor Summary
DistributedSortedSet()
          Deprecated.  
 
Method Summary
 boolean add(DistributedSortedSet.Element element)
          Deprecated.  
 void initialize(Comparator<? super DistributedSortedSet.Element> comparator)
          Deprecated.  
 boolean remove(DistributedSortedSet.Element element)
          Deprecated.  
 E removeFirst()
          Deprecated.  
 int size()
          Deprecated.  
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DistributedSortedSet

public DistributedSortedSet()
Deprecated. 
Method Detail

initialize

public void initialize(Comparator<? super DistributedSortedSet.Element> comparator)
Deprecated. 

add

public boolean add(DistributedSortedSet.Element element)
Deprecated. 

removeFirst

public E removeFirst()
Deprecated. 

remove

public boolean remove(DistributedSortedSet.Element element)
Deprecated. 

size

public int size()
Deprecated. 


Copyright © 2015 Terracotta, Inc.. All Rights Reserved.