public class MailScanner extends Object
Modifier and Type | Field and Description |
---|---|
protected CommandExecutor |
commandExecutor |
protected int |
corePoolSize |
protected boolean |
isActive |
protected boolean |
isAutoActivate |
protected MailScanSchedulerThread |
mailScanSchedulerThread |
protected int |
queueSize |
protected Thread |
thread |
protected ThreadPoolExecutor |
threadPoolExecutor |
protected BlockingQueue<Runnable> |
threadPoolQueue |
Constructor and Description |
---|
MailScanner() |
Modifier and Type | Method and Description |
---|---|
void |
addUser(String userId,
String userPassword) |
CommandExecutor |
getCommandExecutor() |
int |
getCorePoolSize() |
MailScanSchedulerThread |
getMailScanSchedulerThread() |
int |
getMaxPoolSize() |
int |
getQueueSize() |
ThreadPoolExecutor |
getThreadPoolExecutor() |
BlockingQueue<Runnable> |
getThreadPoolQueue() |
boolean |
isActive() |
boolean |
isAutoActivate() |
void |
removeUser(String userId) |
void |
setActive(boolean isActive) |
void |
setAutoActivate(boolean isAutoActivate) |
void |
setCommandExecutor(CommandExecutor commandExecutor) |
void |
setCorePoolSize(int corePoolSize) |
void |
setMailScanSchedulerThread(MailScanSchedulerThread mailScanScheduler) |
void |
setMaxPoolSize(int maxPoolSize) |
void |
setQueueSize(int queueSize) |
void |
setThreadPoolExecutor(ThreadPoolExecutor threadPoolExecutor) |
void |
setThreadPoolQueue(BlockingQueue<Runnable> threadPoolQueue) |
void |
shutdown() |
void |
start() |
protected Thread thread
protected boolean isActive
protected CommandExecutor commandExecutor
protected boolean isAutoActivate
protected MailScanSchedulerThread mailScanSchedulerThread
protected BlockingQueue<Runnable> threadPoolQueue
protected ThreadPoolExecutor threadPoolExecutor
protected int queueSize
protected int corePoolSize
public void start()
public void shutdown()
public void removeUser(String userId)
public CommandExecutor getCommandExecutor()
public int getQueueSize()
public void setQueueSize(int queueSize)
public int getCorePoolSize()
public void setCorePoolSize(int corePoolSize)
public int getMaxPoolSize()
public void setMaxPoolSize(int maxPoolSize)
public BlockingQueue<Runnable> getThreadPoolQueue()
public void setThreadPoolQueue(BlockingQueue<Runnable> threadPoolQueue)
public ThreadPoolExecutor getThreadPoolExecutor()
public void setThreadPoolExecutor(ThreadPoolExecutor threadPoolExecutor)
public boolean isActive()
public boolean isAutoActivate()
public void setAutoActivate(boolean isAutoActivate)
public MailScanSchedulerThread getMailScanSchedulerThread()
public void setMailScanSchedulerThread(MailScanSchedulerThread mailScanScheduler)
public void setActive(boolean isActive)
public void setCommandExecutor(CommandExecutor commandExecutor)
Copyright © 2015. All rights reserved.