public class RemoveOnCancelScheduledExecutorService extends Object implements org.jboss.msc.service.Service<ScheduledExecutorService>
ScheduledThreadPoolExecutor
that removes tasks from the task queue upon cancellation.Constructor and Description |
---|
RemoveOnCancelScheduledExecutorService(int size,
ThreadFactory threadFactory) |
RemoveOnCancelScheduledExecutorService(ThreadFactory threadFactory) |
Modifier and Type | Method and Description |
---|---|
ScheduledExecutorService |
getValue() |
void |
start(org.jboss.msc.service.StartContext context) |
void |
stop(org.jboss.msc.service.StopContext context) |
public RemoveOnCancelScheduledExecutorService(ThreadFactory threadFactory)
public RemoveOnCancelScheduledExecutorService(int size, ThreadFactory threadFactory)
public ScheduledExecutorService getValue()
getValue
in interface org.jboss.msc.value.Value<ScheduledExecutorService>
public void start(org.jboss.msc.service.StartContext context)
start
in interface org.jboss.msc.service.Service<ScheduledExecutorService>
public void stop(org.jboss.msc.service.StopContext context)
stop
in interface org.jboss.msc.service.Service<ScheduledExecutorService>
Copyright © 2014 JBoss by Red Hat. All rights reserved.