net.sf.cindy.packet
Class PriorityPacket

java.lang.Object
  extended by net.sf.cindy.packet.DelegatePacket
      extended by net.sf.cindy.packet.PriorityPacket
All Implemented Interfaces:
java.lang.Comparable, Packet

public class PriorityPacket
extends DelegatePacket
implements java.lang.Comparable

Implementation of Packet, compared by priority and create time.

Version:
$id$
Author:
Roger Chen

Constructor Summary
PriorityPacket(Packet packet, int priority)
           
 
Method Summary
 int compareTo(java.lang.Object obj)
           
 java.lang.String toString()
           
 
Methods inherited from class net.sf.cindy.packet.DelegatePacket
getAddress, getContent, getDelegate
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

PriorityPacket

public PriorityPacket(Packet packet,
                      int priority)
Method Detail

compareTo

public int compareTo(java.lang.Object obj)
Specified by:
compareTo in interface java.lang.Comparable

toString

public java.lang.String toString()
Overrides:
toString in class DelegatePacket