Search in sources :

Example 1 with DaemonFactory

use of org.simpleframework.common.thread.DaemonFactory in project jersey by jersey.

the class SimpleContainer method reload.

@Override
public void reload(final ResourceConfig configuration) {
    appHandler.onShutdown(this);
    appHandler = new ApplicationHandler(configuration.register(new SimpleBinder()));
    scheduler = new ScheduledThreadPoolExecutor(2, new DaemonFactory(TimeoutDispatcher.class));
    appHandler.onReload(this);
    appHandler.onStartup(this);
}
Also used : ScheduledThreadPoolExecutor(java.util.concurrent.ScheduledThreadPoolExecutor) ApplicationHandler(org.glassfish.jersey.server.ApplicationHandler) DaemonFactory(org.simpleframework.common.thread.DaemonFactory)

Aggregations

ScheduledThreadPoolExecutor (java.util.concurrent.ScheduledThreadPoolExecutor)1 ApplicationHandler (org.glassfish.jersey.server.ApplicationHandler)1 DaemonFactory (org.simpleframework.common.thread.DaemonFactory)1