sun.misc.SharedSecrets.getJavaLangAccess().blockedOn(thread, new Interruptible() { public void interrupt(Thread thread) { System.out.println("callback for interrupt"); } } );