Type Parameters:
V - The result type returned by this Future's get method異步
父接口:post
子接口:this
實現類:繼承
RunnableFuture接口繼承了Runnable和Future兩個接口,寫到這裏提醒一下你們,Java中類是不能夠多重繼承的,可是接口能夠多重繼承的。 Future通常是用來作爲異步計算結果的,因此呢,RunnableFuture的實現類既是計算結果,同時也是一個執行任務,能夠傳遞給Excutor。接口
繼承自Runnableget
繼承自Futureclass