Oracle Fusion Middleware
Java API Reference for Oracle WebLogic Server
12c (12.1.2)

Part Number E27170-01

weblogic.wsee.util
Class StableHash<T>

java.lang.Object
  extended by weblogic.wsee.util.StableHash<T>

public class StableHash<T>
extends Object

Stable hash algorithm. This hash allows the addition and removal of hash value points with minimal disruption in the values produced by the hash overall.


Nested Class Summary
static interface StableHash.HashFunction
           
 
Constructor Summary
StableHash(StableHash.HashFunction hashFunction, int numberOfReplicas, Collection<T> nodes)
           
 
Method Summary
 void add(T node)
           
 T get(Object key)
           
 void remove(T node)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

StableHash

public StableHash(StableHash.HashFunction hashFunction,
                  int numberOfReplicas,
                  Collection<T> nodes)
Method Detail

add

public void add(T node)

remove

public void remove(T node)

get

public T get(Object key)

Copyright 1996, 2013, Oracle and/or its affiliates. All rights reserved. Oracle is a registered trademark of Oracle Corporation and/or its affiliates. Other names may be trademarks of their respective owners.

Oracle Fusion Middleware
Java API Reference for Oracle WebLogic Server
12c (12.1.2)

Part Number E27170-01