Package akka.dispatch

Class PriorityGenerator

  • All Implemented Interfaces:

    public abstract class PriorityGenerator
    extends java.lang.Object
    implements java.util.Comparator<Envelope>
    A PriorityGenerator is a convenience API to create a Comparator that orders the messages of a PriorityDispatcher
    • Method Summary

      All Methods Static Methods Instance Methods Abstract Methods Concrete Methods 
      Modifier and Type Method Description
      static PriorityGenerator apply​(scala.Function1<java.lang.Object,​java.lang.Object> priorityFunction)  
      int compare​(Envelope thisMessage, Envelope thatMessage)  
      abstract int gen​(java.lang.Object message)  
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
      • Methods inherited from interface java.util.Comparator

        equals, reversed, thenComparing, thenComparing, thenComparing, thenComparingDouble, thenComparingInt, thenComparingLong
    • Constructor Detail

      • PriorityGenerator

        public PriorityGenerator()
    • Method Detail

      • apply

        public static PriorityGenerator apply​(scala.Function1<java.lang.Object,​java.lang.Object> priorityFunction)
      • gen

        public abstract int gen​(java.lang.Object message)
      • compare

        public final int compare​(Envelope thisMessage,
                                 Envelope thatMessage)
        Specified by:
        compare in interface java.util.Comparator<Envelope>