Package jadex.commons.future
Class FutureHelper
- java.lang.Object
-
- jadex.commons.future.FutureHelper
-
public abstract class FutureHelper extends java.lang.Object
Helper class to access future notification stack
-
-
Constructor Summary
Constructors Constructor Description FutureHelper()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static void
addStackedListeners(java.util.Queue<Tuple3<Future<?>,IResultListener<?>,ICommand<IResultListener<?>>>> notifications)
Add listener notifications to the current thread.static void
notifyStackedListeners()
Process all collected listener notifications for the current thread.static java.util.Queue<Tuple3<Future<?>,IResultListener<?>,ICommand<IResultListener<?>>>>
removeStackedListeners()
Remove all collected listener notifications for the current thread.
-
-
-
Method Detail
-
notifyStackedListeners
public static void notifyStackedListeners()
Process all collected listener notifications for the current thread.
-
removeStackedListeners
public static java.util.Queue<Tuple3<Future<?>,IResultListener<?>,ICommand<IResultListener<?>>>> removeStackedListeners()
Remove all collected listener notifications for the current thread.
-
addStackedListeners
public static void addStackedListeners(java.util.Queue<Tuple3<Future<?>,IResultListener<?>,ICommand<IResultListener<?>>>> notifications)
Add listener notifications to the current thread.
-
-