Package fr.dyade.aaa.agent
Interface MessageComparator
-
- All Known Subinterfaces:
AgentEngine,MessageConsumer
- All Known Implementing Classes:
Engine,HttpNetwork,HttpsNetwork,Network,NGNetwork,PoolNetwork,SimpleNetwork,SSLNetwork,StreamNetwork,UDPNetwork
public interface MessageComparator
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description booleanisPrior(Message m1, Message m2)Compares the 2 messages for time ordering.
-
-
-
Method Detail
-
isPrior
boolean isPrior(Message m1, Message m2)
Compares the 2 messages for time ordering. Returns true if the first message is earlier than the second, false otherwise.- Parameters:
m1- The first message.m2- The second message.- Returns:
- true if the first message is earlier than the second, false otherwise.
- Throws:
NullPointerException- if an argument is null and this comparator does not permit null arguments
-
-