cgl.narada.service.storage
Class SequenceDestinations

java.lang.Object
  extended by cgl.narada.service.storage.SequenceDestinations

public class SequenceDestinations
extends Object

Provides information regarding a sequence number and the destinations associated with this sequence number


Constructor Summary
SequenceDestinations(byte[] marshalledBytes)
           
SequenceDestinations(long sequenceNumber, int[] destinations)
           
 
Method Summary
 boolean containsDestination(int entityId)
          Checks to see if t he destinations list contains the specified entity id
 byte[] getBytes()
           
 int[] getDestinations()
           
 long getSequenceNumber()
           
 boolean hasDestinations()
           
 boolean hasValidDestinations()
          If all the destinations have been set to zero, there aren't any valid destinations anymore
 void removeDestination(int entityId)
          Removes a destination from the set of valid destinations
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SequenceDestinations

public SequenceDestinations(long sequenceNumber,
                            int[] destinations)

SequenceDestinations

public SequenceDestinations(byte[] marshalledBytes)
Method Detail

getSequenceNumber

public long getSequenceNumber()

hasDestinations

public boolean hasDestinations()

getDestinations

public int[] getDestinations()

containsDestination

public boolean containsDestination(int entityId)
Checks to see if t he destinations list contains the specified entity id


hasValidDestinations

public boolean hasValidDestinations()
If all the destinations have been set to zero, there aren't any valid destinations anymore


removeDestination

public void removeDestination(int entityId)
Removes a destination from the set of valid destinations


getBytes

public byte[] getBytes()


For comments and suggestions please send e-mail to The NaradaBrokering Project