org.infinispan.executors
Class DefaultSharedScheduledExecutorFactory
java.lang.Object
org.infinispan.executors.AbstractSharedExecutorFactory<ScheduledExecutorService>
org.infinispan.executors.DefaultSharedScheduledExecutorFactory
- All Implemented Interfaces:
- ScheduledExecutorFactory
public class DefaultSharedScheduledExecutorFactory
- extends AbstractSharedExecutorFactory<ScheduledExecutorService>
- implements ScheduledExecutorFactory
Default executor factory that creates a single scheduled executor and reuses it for subsequent calls to getScheduledExecutor(java.util.Properties)
.
Note that the executor is only shared amongst equivalent configurations (by checking that the Properties passed in are
equal). What this means is two calls to getScheduledExecutor(java.util.Properties)
with 2 inequal
properties parameters will result in 2 separate executors being created.
The executors created are standard JDK executors, identical to those created by DefaultExecutorFactory
.
- Since:
- 4.2
- Author:
- Manik Surtani
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
DefaultSharedScheduledExecutorFactory
public DefaultSharedScheduledExecutorFactory()
createService
protected ScheduledExecutorService createService(Properties p)
- Specified by:
createService
in class AbstractSharedExecutorFactory<ScheduledExecutorService>
getScheduledExecutor
public ScheduledExecutorService getScheduledExecutor(Properties p)
- Specified by:
getScheduledExecutor
in interface ScheduledExecutorFactory
Copyright © 2010 JBoss, a division of Red Hat. All Rights Reserved.