Interface MayHangOnShutdown


  • public interface MayHangOnShutdown
    This interface may be implemented by transports that have special knowledge about pending dispatches during shutdown. If the transport knows that the dispatch or send will possibly hang during shutdown, it can implement this interface to assist the system in properly shutting down as quickly as possible.
    • Method Summary

      All Methods Instance Methods Abstract Methods 
      Modifier and Type Method Description
      boolean clearMessagesThatHangOnShutdown​(java.lang.String threadName, java.lang.String uri)
      Interface that can be implemented by transports to indicate that queuing to a particular uri would hang during shutdown.
    • Method Detail

      • clearMessagesThatHangOnShutdown

        boolean clearMessagesThatHangOnShutdown​(java.lang.String threadName,
                                                java.lang.String uri)
        Interface that can be implemented by transports to indicate that queuing to a particular uri would hang during shutdown.

        Implementors may need to interrupt the thread specified by threadName.

        Returns:
        true if thread threadName is holding a message that can be ignored for purposes of safe shutdown