Package bitronix.tm.utils
Class Scheduler<T>
java.lang.Object
bitronix.tm.utils.Scheduler<T>
- All Implemented Interfaces:
Iterable<T>
Positional object container. Objects can be added to a scheduler at a certain position (or priority) and can be
retrieved later on in their position + added order. All the objects of a scheduler can be iterated in order or
objects of a cetain position can be retrieved for iteration.
- Author:
- lorban
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidgetByNaturalOrderForPosition(Integer position) getByReverseOrderForPosition(Integer position) iterator()voidintsize()toString()Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface java.lang.Iterable
forEach, spliterator
-
Field Details
-
DEFAULT_POSITION
-
ALWAYS_FIRST_POSITION
-
ALWAYS_LAST_POSITION
-
-
Constructor Details
-
Scheduler
public Scheduler()
-
-
Method Details