getKeepAliveTime

Returns the thread keep-alive time, which is the amount of time that threads may remain idle before being terminated. Threads that wait this amount of time without processing a task will be terminated if there are more than the core number of threads currently in the pool, or if this pool .allowsCoreThreadTimeOut.

Return

the time limit

Parameters

unit

the desired time unit of the result

See also

.setKeepAliveTime