< prev index next >

src/java.base/share/classes/jdk/internal/vm/ThreadContainer.java

Print this page

72      */
73     public void onStart(Thread thread) {
74         // do nothing
75     }
76 
77     /**
78      * Invoked when a Thread terminates or starting it fails.
79      *
80      * For a platform thread, this method is invoked by the thread itself when it
81      * terminates. For a virtual thread, this method is invoked on its carrier
82      * after the virtual thread has terminated.
83      *
84      * If starting the Thread failed then this method is invoked on the thread
85      * that invoked onStart.
86      */
87     public void onExit(Thread thread) {
88         // do nothing
89     }
90 
91     /**
92      * The extent locals captured when the thread container was created.
93      */
94     public ExtentLocalContainer.BindingsSnapshot extentLocalBindings() {
95         return null;
96     }
97 }

72      */
73     public void onStart(Thread thread) {
74         // do nothing
75     }
76 
77     /**
78      * Invoked when a Thread terminates or starting it fails.
79      *
80      * For a platform thread, this method is invoked by the thread itself when it
81      * terminates. For a virtual thread, this method is invoked on its carrier
82      * after the virtual thread has terminated.
83      *
84      * If starting the Thread failed then this method is invoked on the thread
85      * that invoked onStart.
86      */
87     public void onExit(Thread thread) {
88         // do nothing
89     }
90 
91     /**
92      * The scoped values captured when the thread container was created.
93      */
94     public ScopedValueContainer.BindingsSnapshot scopedValueBindings() {
95         return null;
96     }
97 }
< prev index next >