jegg.impl
Class Priority

java.lang.Object
  extended byjegg.impl.Priority
All Implemented Interfaces:
java.lang.Comparable

public final class Priority
extends java.lang.Object
implements java.lang.Comparable

Enumeration of the dispatch priorities that may be assigned to a message being sent from one egg to another. Queued messages with a higher priority are dispatched ahead of lower priority messages.


Field Summary
static Priority HIGH
          The highest dispatch priority
static Priority LOW
          The lowest dispatch priority
static Priority MEDIUM
          The normal dispatch priority
 
Method Summary
 int compareTo(java.lang.Object o)
          Implementation of the Comparable interface that that priorities will be properly handled by a sorted set.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

HIGH

public static final Priority HIGH
The highest dispatch priority


MEDIUM

public static final Priority MEDIUM
The normal dispatch priority


LOW

public static final Priority LOW
The lowest dispatch priority

Method Detail

compareTo

public int compareTo(java.lang.Object o)
Implementation of the Comparable interface that that priorities will be properly handled by a sorted set.

Specified by:
compareTo in interface java.lang.Comparable


Copyright © 2004 . All Rights Reserved.