public long getKeepAliveTime (TimeUnit unit)

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 allows core thread timeout.

Parameters:
unit    the desired time unit of the result

Returns:  the time limit

See also:
setKeepAliveTime(long, TimeUnit)