IdleConnectionEvictor.java (httpcomponents-client-4.5.6-src) | : | IdleConnectionEvictor.java (httpcomponents-client-4.5.7-src) | ||
---|---|---|---|---|
skipping to change at line 107 | skipping to change at line 107 | |||
} | } | |||
public void shutdown() { | public void shutdown() { | |||
thread.interrupt(); | thread.interrupt(); | |||
} | } | |||
public boolean isRunning() { | public boolean isRunning() { | |||
return thread.isAlive(); | return thread.isAlive(); | |||
} | } | |||
public void awaitTermination(final long time, final TimeUnit tunit) throws I | public void awaitTermination(final long time, final TimeUnit timeUnit) throw | |||
nterruptedException { | s InterruptedException { | |||
thread.join((tunit != null ? tunit : TimeUnit.MILLISECONDS).toMillis(tim | thread.join((timeUnit != null ? timeUnit : TimeUnit.MILLISECONDS).toMill | |||
e)); | is(time)); | |||
} | } | |||
static class DefaultThreadFactory implements ThreadFactory { | static class DefaultThreadFactory implements ThreadFactory { | |||
@Override | @Override | |||
public Thread newThread(final Runnable r) { | public Thread newThread(final Runnable r) { | |||
final Thread t = new Thread(r, "Connection evictor"); | final Thread t = new Thread(r, "Connection evictor"); | |||
t.setDaemon(true); | t.setDaemon(true); | |||
return t; | return t; | |||
} | } | |||
End of changes. 1 change blocks. | ||||
4 lines changed or deleted | 4 lines changed or added |