public class HotDeployServiceFactory extends java.lang.Object implements PluginThreadFactory, HotDeployExecutor
构造器和说明 |
---|
HotDeployServiceFactory() |
限定符和类型 | 方法和说明 |
---|---|
java.util.concurrent.ExecutorService |
newCachedThreadPool() |
java.util.concurrent.ExecutorService |
newCachedThreadPool(java.util.concurrent.ThreadFactory threadFactory) |
java.util.concurrent.ExecutorService |
newFixedThreadPool(int nThreads) |
java.util.concurrent.ExecutorService |
newFixedThreadPool(int nThreads,
java.util.concurrent.ThreadFactory threadFactory) |
java.util.concurrent.ScheduledExecutorService |
newScheduledThreadPool(int corePoolSize) |
java.util.concurrent.ScheduledExecutorService |
newScheduledThreadPool(int corePoolSize,
java.util.concurrent.ThreadFactory threadFactory) |
java.net.ServerSocket |
newServerSocket() |
java.net.ServerSocket |
newServerSocket(int port) |
java.net.ServerSocket |
newServerSocket(int port,
int backlog) |
java.net.ServerSocket |
newServerSocket(int port,
int backlog,
java.net.InetAddress bindAddress) |
java.util.concurrent.ExecutorService |
newSingleThreadExecutor() |
java.util.concurrent.ExecutorService |
newSingleThreadExecutor(java.util.concurrent.ThreadFactory threadFactory) |
java.util.concurrent.ScheduledExecutorService |
newSingleThreadScheduledExecutor() |
java.util.concurrent.ScheduledExecutorService |
newSingleThreadScheduledExecutor(java.util.concurrent.ThreadFactory threadFactory) |
java.net.Socket |
newSocket() |
java.net.Socket |
newSocket(java.net.InetAddress address,
int port) |
java.net.Socket |
newSocket(java.net.Proxy proxy) |
java.net.Socket |
newSocket(java.lang.String host,
int port) |
java.net.Socket |
newSocket(java.lang.String host,
int port,
java.net.InetAddress localAddress,
int localPort) |
java.util.Timer |
newTimer() |
java.util.Timer |
newTimer(boolean isDaemon) |
java.util.Timer |
newTimer(java.lang.String name) |
java.util.Timer |
newTimer(java.lang.String name,
boolean isDaemon) |
void |
onPluginStop()
插件stop时调用,关闭所有通过该工厂创建的对象
|
java.util.concurrent.ExecutorService |
unconfigurableExecutorService(java.util.concurrent.ExecutorService executor) |
java.util.concurrent.ScheduledExecutorService |
unconfigurableScheduledExecutorService(java.util.concurrent.ScheduledExecutorService executor) |
public void onPluginStop()
onPluginStop
在接口中 HotDeployExecutor
public java.util.Timer newTimer()
newTimer
在接口中 PluginThreadFactory
public java.util.Timer newTimer(boolean isDaemon)
newTimer
在接口中 PluginThreadFactory
public java.util.Timer newTimer(java.lang.String name)
newTimer
在接口中 PluginThreadFactory
public java.util.Timer newTimer(java.lang.String name, boolean isDaemon)
newTimer
在接口中 PluginThreadFactory
public java.net.Socket newSocket()
newSocket
在接口中 PluginThreadFactory
public java.net.Socket newSocket(java.net.Proxy proxy)
newSocket
在接口中 PluginThreadFactory
public java.net.Socket newSocket(java.lang.String host, int port) throws java.io.IOException
newSocket
在接口中 PluginThreadFactory
java.io.IOException
public java.net.Socket newSocket(java.net.InetAddress address, int port) throws java.io.IOException
newSocket
在接口中 PluginThreadFactory
java.io.IOException
public java.net.Socket newSocket(java.lang.String host, int port, java.net.InetAddress localAddress, int localPort) throws java.io.IOException
newSocket
在接口中 PluginThreadFactory
java.io.IOException
public java.net.ServerSocket newServerSocket() throws java.io.IOException
newServerSocket
在接口中 PluginThreadFactory
java.io.IOException
public java.net.ServerSocket newServerSocket(int port) throws java.io.IOException
newServerSocket
在接口中 PluginThreadFactory
java.io.IOException
public java.net.ServerSocket newServerSocket(int port, int backlog) throws java.io.IOException
newServerSocket
在接口中 PluginThreadFactory
java.io.IOException
public java.net.ServerSocket newServerSocket(int port, int backlog, java.net.InetAddress bindAddress) throws java.io.IOException
newServerSocket
在接口中 PluginThreadFactory
java.io.IOException
public java.util.concurrent.ExecutorService newFixedThreadPool(int nThreads)
newFixedThreadPool
在接口中 PluginThreadFactory
public java.util.concurrent.ExecutorService newFixedThreadPool(int nThreads, java.util.concurrent.ThreadFactory threadFactory)
newFixedThreadPool
在接口中 PluginThreadFactory
public java.util.concurrent.ExecutorService newSingleThreadExecutor()
newSingleThreadExecutor
在接口中 PluginThreadFactory
public java.util.concurrent.ExecutorService newSingleThreadExecutor(java.util.concurrent.ThreadFactory threadFactory)
newSingleThreadExecutor
在接口中 PluginThreadFactory
public java.util.concurrent.ExecutorService newCachedThreadPool()
newCachedThreadPool
在接口中 PluginThreadFactory
public java.util.concurrent.ExecutorService newCachedThreadPool(java.util.concurrent.ThreadFactory threadFactory)
newCachedThreadPool
在接口中 PluginThreadFactory
public java.util.concurrent.ScheduledExecutorService newSingleThreadScheduledExecutor()
public java.util.concurrent.ScheduledExecutorService newSingleThreadScheduledExecutor(java.util.concurrent.ThreadFactory threadFactory)
public java.util.concurrent.ScheduledExecutorService newScheduledThreadPool(int corePoolSize)
newScheduledThreadPool
在接口中 PluginThreadFactory
public java.util.concurrent.ScheduledExecutorService newScheduledThreadPool(int corePoolSize, java.util.concurrent.ThreadFactory threadFactory)
newScheduledThreadPool
在接口中 PluginThreadFactory
public java.util.concurrent.ExecutorService unconfigurableExecutorService(java.util.concurrent.ExecutorService executor)
public java.util.concurrent.ScheduledExecutorService unconfigurableScheduledExecutorService(java.util.concurrent.ScheduledExecutorService executor)