com.hazelcast.partition
Class PartitionServiceProxy.PartitionProxy

java.lang.Object
  extended by com.hazelcast.partition.PartitionServiceProxy.PartitionProxy
All Implemented Interfaces:
Partition, Comparable
Enclosing class:
PartitionServiceProxy

public class PartitionServiceProxy.PartitionProxy
extends Object
implements Partition, Comparable


Method Summary
 int compareTo(Object o)
           
 boolean equals(Object o)
           
 Member getOwner()
          Returns the current member that owns this partition.
 int getPartitionId()
          Returns the id of the partition.
 int hashCode()
           
 String toString()
           
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Method Detail

getPartitionId

public int getPartitionId()
Description copied from interface: Partition
Returns the id of the partition. This value will never change and will always be greater to or equal to 0 and smaller than the partition-count.

Specified by:
getPartitionId in interface Partition
Returns:
the id of the partition

getOwner

public Member getOwner()
Description copied from interface: Partition
Returns the current member that owns this partition. The returned value could be stale as soon as it is returned. It can be that null is returned if the owner of a partition has not been established.

Specified by:
getOwner in interface Partition
Returns:
the owner member of the partition

compareTo

public int compareTo(Object o)
Specified by:
compareTo in interface Comparable

equals

public boolean equals(Object o)
Overrides:
equals in class Object

hashCode

public int hashCode()
Overrides:
hashCode in class Object

toString

public String toString()
Overrides:
toString in class Object


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