Modifier and Type | Field and Description |
---|---|
private ScheduledFuture<?> |
callableHandle |
private Helper |
helper |
static org.objectweb.util.monolog.api.Logger |
logger |
private int |
period |
private HashMap<String,RestClientContext> |
restClientCtxs |
private ScheduledExecutorService |
scheduler |
private int |
timeOut |
Constructor and Description |
---|
CleanerTask() |
Modifier and Type | Method and Description |
---|---|
Boolean |
call() |
int |
getPeriod() |
int |
getTimeOut() |
void |
setPeriod(int period) |
void |
setTimeOut(int timeOut) |
void |
start() |
void |
stop() |
void |
submitCallTask() |
public static org.objectweb.util.monolog.api.Logger logger
private ScheduledExecutorService scheduler
private int period
private int timeOut
private ScheduledFuture<?> callableHandle
private HashMap<String,RestClientContext> restClientCtxs
private Helper helper
public int getPeriod()
public void setPeriod(int period)
period
- the period to setpublic int getTimeOut()
public void setTimeOut(int timeOut)
timeOut
- the timeOut to setpublic void start()
public void stop()
public void submitCallTask()
Copyright © 2018 ScalAgent D.T.. All Rights Reserved.