Skip to content
GitLab
Menu
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
joram
joram
Commits
2a232bd5
Commit
2a232bd5
authored
Apr 27, 2022
by
Andre Freyssinet
Browse files
Fixes Joram#
#314368
.
Inserts messages in right order after a stamp reset. Adds the missing interface.
parent
fa64cac7
Changes
1
Hide whitespace changes
Inline
Side-by-side
joram/a3/rt/src/main/java/fr/dyade/aaa/agent/MessageComparator.java
0 → 100644
View file @
2a232bd5
/*
* Copyright (C) 2022 ScalAgent Distributed Technologies
*
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public
* License as published by the Free Software Foundation; either
* version 2.1 of the License, or any later version.
*
* This library is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
* Lesser General Public License for more details.
*
* You should have received a copy of the GNU Lesser General Public
* License along with this library; if not, write to the Free Software
* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307
* USA.
*
* Initial developer(s): ScalAgent Distributed Technologies
* Contributor(s):
*/
package
fr.dyade.aaa.agent
;
public
interface
MessageComparator
{
/**
* Compares the 2 messages for time ordering.
* Returns true if the first message is earlier than the second, false otherwise.
*
* @param m1 The first message.
* @param m2 The second message.
* @return 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
*/
boolean
isPrior
(
Message
m1
,
Message
m2
);
}
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment