Interface CoalescentRunnable

All Superinterfaces:
Runnable

public interface CoalescentRunnable
extends Runnable
A "coalescent" runnable, for use with invokeLaterWithCoalescence.
  • Method Details

    • getCoalescenceClass

      Class<?> getCoalescenceClass()
      Return a tag class used to group instances that can be coalesced.
      Returns:
      a tag class
    • coalesceWith

      CoalescentRunnable coalesceWith​(CoalescentRunnable later)
      Return a new runnable formed by coalescing this instance with another. It is guaranteed that another has the same coalescence class as this instance, and that another was 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