how to get Future return when cause timeout Exception in java
问题 I'm wondering can I get the result when it cause timeout Exception when use Future and ExecutorService, for example, below is my code package com.example; import java.util.UUID; import java.util.concurrent.ExecutorService; import java.util.concurrent.Future; import java.util.concurrent.LinkedBlockingQueue; import java.util.concurrent.ThreadPoolExecutor; import java.util.concurrent.TimeUnit; import java.util.concurrent.TimeoutException; import org.apache.commons.lang3.concurrent