阻塞:

synchronized(this){
    this.wait(10_000);
    }

激活:

synchronized(this){
    this.notify();
    }