Interface CoalescentRunnable
- All Superinterfaces:
Runnable
public interface CoalescentRunnable extends Runnable
A "coalescent" runnable, for use with
invokeLaterWithCoalescence.-
Method Summary
Modifier and Type Method Description CoalescentRunnablecoalesceWith(CoalescentRunnable later)Return a new runnable formed by coalescing this instance with another.Class<?>getCoalescenceClass()Return a tag class used to group instances that can be coalesced.
-
Method Details
-
getCoalescenceClass
Class<?> getCoalescenceClass()Return a tag class used to group instances that can be coalesced.- Returns:
- a tag class
-
coalesceWith
Return a new runnable formed by coalescing this instance with another. It is guaranteed thatanotherhas the same coalescence class as this instance, and thatanotherwas scheduled after this instance (or the instances coalesced to form this instance). Note that this method should not have any side effects.- Parameters:
later- a newer coalescent runnable with which to coalesce- Returns:
- the coalesced runnable formed from this instance and
another
-