ModeShape Distribution 3.6.0.Final

org.modeshape.jcr
Class InfinispanUtil.KeyMerger<K>

java.lang.Object
  extended by org.modeshape.jcr.InfinispanUtil.KeyMerger<K>
Type Parameters:
K - the type of key
All Implemented Interfaces:
InfinispanUtil.Combiner<Set<K>>
Enclosing class:
InfinispanUtil

protected static class InfinispanUtil.KeyMerger<K>
extends Object
implements InfinispanUtil.Combiner<Set<K>>

Since keys can appear more than one time e.g. multiple owners in a distributed cache, they all must be merged into a Set.


Constructor Summary
protected InfinispanUtil.KeyMerger()
           
 
Method Summary
 Set<K> combine(Set<K> priorResult, Set<K> newResult)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

InfinispanUtil.KeyMerger

protected InfinispanUtil.KeyMerger()
Method Detail

combine

public Set<K> combine(Set<K> priorResult,
                      Set<K> newResult)
Specified by:
combine in interface InfinispanUtil.Combiner<Set<K>>

ModeShape Distribution 3.6.0.Final

Copyright © 2008-2013 JBoss, a division of Red Hat. All Rights Reserved.