Interface ShutdownListenable

All Known Implementing Classes:
JBossScheduledThreadPoolExecutor, JBossThreadPoolExecutor, QueueExecutor, QueuelessExecutor, SimpleShutdownListenable

public interface ShutdownListenable
An object which can have shutdown listeners registered on it.
Author:
David M. Lloyd
  • Method Summary

    Modifier and Type
    Method
    Description
    <A> void
    addShutdownListener(EventListener<A> shutdownListener, A attachment)
    Add a shutdown listener.
  • Method Details

    • addShutdownListener

      <A> void addShutdownListener(EventListener<A> shutdownListener, A attachment)
      Add a shutdown listener. If the target object is already shut down, the listener is invoked directly.
      Type Parameters:
      A - the attachment type
      Parameters:
      shutdownListener - the listener
      attachment - the attachment value to pass to the listener