Class ShutdownManager.Hook

  • All Implemented Interfaces:
    java.lang.Comparable
    Enclosing class:
    ShutdownManager

    private static class ShutdownManager.Hook
    extends java.lang.Object
    implements java.lang.Comparable
    Aggregates a runnable and an associated sequence value.
    • Field Summary

      Fields 
      Modifier and Type Field Description
      (package private) int iseq_  
      (package private) java.lang.Runnable runnable_  
    • Constructor Summary

      Constructors 
      Constructor Description
      Hook​(java.lang.Runnable runnable, int iseq)
      Constructor.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      int compareTo​(java.lang.Object other)  
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Field Detail

      • runnable_

        final java.lang.Runnable runnable_
      • iseq_

        final int iseq_
    • Constructor Detail

      • Hook

        Hook​(java.lang.Runnable runnable,
             int iseq)
        Constructor.
        Parameters:
        runnable - runnable
        iseq - sequence value
    • Method Detail

      • compareTo

        public int compareTo​(java.lang.Object other)
        Specified by:
        compareTo in interface java.lang.Comparable