1465 |
|
* Returns the thread factory used to create new threads. |
1466 |
|
* |
1467 |
|
* @return the current thread factory |
1468 |
< |
* @see #setThreadFactory |
1468 |
> |
* @see #setThreadFactory(ThreadFactory) |
1469 |
|
*/ |
1470 |
|
public ThreadFactory getThreadFactory() { |
1471 |
|
return threadFactory; |
1488 |
|
* Returns the current handler for unexecutable tasks. |
1489 |
|
* |
1490 |
|
* @return the current handler |
1491 |
< |
* @see #setRejectedExecutionHandler |
1491 |
> |
* @see #setRejectedExecutionHandler(RejectedExecutionHandler) |
1492 |
|
*/ |
1493 |
|
public RejectedExecutionHandler getRejectedExecutionHandler() { |
1494 |
|
return handler; |
1660 |
|
* @param unit the time unit of the {@code time} argument |
1661 |
|
* @throws IllegalArgumentException if {@code time} less than zero or |
1662 |
|
* if {@code time} is zero and {@code allowsCoreThreadTimeOut} |
1663 |
< |
* @see #getKeepAliveTime |
1663 |
> |
* @see #getKeepAliveTime(TimeUnit) |
1664 |
|
*/ |
1665 |
|
public void setKeepAliveTime(long time, TimeUnit unit) { |
1666 |
|
if (time < 0) |
1681 |
|
* |
1682 |
|
* @param unit the desired time unit of the result |
1683 |
|
* @return the time limit |
1684 |
< |
* @see #setKeepAliveTime |
1684 |
> |
* @see #setKeepAliveTime(long, TimeUnit) |
1685 |
|
*/ |
1686 |
|
public long getKeepAliveTime(TimeUnit unit) { |
1687 |
|
return unit.convert(keepAliveTime, TimeUnit.NANOSECONDS); |