org.infinispan.distribution.ch
Class VirtualAddress
java.lang.Object
org.infinispan.distribution.ch.VirtualAddress
- All Implemented Interfaces:
- Address
public class VirtualAddress
- extends Object
- implements Address
Virtual addresses are used internally by the consistent hashes in order to provide virtual nodes.
A virtual addresses contains the "real address" of the node and a synthetic identifier which
is used to differentiate different virtual nodes on a real node from one another.
- Author:
- Pete Muir
VirtualAddress
public VirtualAddress(Address realAddress,
int id)
getId
public int getId()
getRealAddress
public Address getRealAddress()
hashCode
public int hashCode()
- Overrides:
hashCode
in class Object
equals
public boolean equals(Object obj)
- Overrides:
equals
in class Object
toString
public String toString()
- Overrides:
toString
in class Object
Copyright © 2012 JBoss, a division of Red Hat. All Rights Reserved.