public class FaxJobMonitorImpl extends AbstractFaxJobMonitor
Modifier and Type | Class and Description |
---|---|
static class |
FaxJobMonitorImpl.PollerTask
This class used the start the polling cycle.
|
Modifier and Type | Field and Description |
---|---|
static String |
FIXED_POLLING_INTERVAL_PROPERTY_KEY
The fax job polling interval fixed property key
|
protected boolean |
fixedPollingInterval
The fixed polling interval settings
|
protected Object |
LOCK
The lock object
|
protected FaxJobMonitorImpl.PollerTask |
pollerTask
The poller task
|
static String |
POLLING_INTERVAL_IN_MILLIES_PROPERTY_KEY
The fax job polling interval in millies property key
|
static String |
POLLING_THREAD_PRIORITY_PROPERTY_KEY
The fax job polling thread priority property key
|
protected long |
pollingInterval
The poller task interval between invocations
|
protected int |
pollingThreadPriority
The poller thread priority
|
Constructor and Description |
---|
FaxJobMonitorImpl()
This is the class constructor.
|
Modifier and Type | Method and Description |
---|---|
protected void |
initializeImpl()
This function initializes the fax job monitor.
|
void |
monitorFaxJobImpl(FaxClientSpi faxClientSpi,
FaxJob faxJob)
This function starts monitoring the requested fax job.
|
protected void |
runPollingCycle()
Runs the polling cycle to fetch and create monitor events.
|
void |
stopMonitoringAllFaxJobsImpl(FaxClientSpi faxClientSpi)
This function will stop the monitoring of all fax jobs registered by the provided fax client SPI.
Other fax jobs registered by other SPIs will keep on being monitored. |
getConfigurationValue, getLogger, initialize, monitorFaxJob, stopMonitoringAllFaxJobs
protected long pollingInterval
protected boolean fixedPollingInterval
protected int pollingThreadPriority
protected FaxJobMonitorImpl.PollerTask pollerTask
protected final Object LOCK
public static final String POLLING_INTERVAL_IN_MILLIES_PROPERTY_KEY
public static final String FIXED_POLLING_INTERVAL_PROPERTY_KEY
public static final String POLLING_THREAD_PRIORITY_PROPERTY_KEY
protected void initializeImpl()
initializeImpl
in class AbstractFaxJobMonitor
public void monitorFaxJobImpl(FaxClientSpi faxClientSpi, FaxJob faxJob)
monitorFaxJobImpl
in class AbstractFaxJobMonitor
faxClientSpi
- The fax client SPIfaxJob
- The fax job to monitorpublic void stopMonitoringAllFaxJobsImpl(FaxClientSpi faxClientSpi)
stopMonitoringAllFaxJobsImpl
in class AbstractFaxJobMonitor
faxClientSpi
- The fax client SPIprotected void runPollingCycle()
Copyright © 2009–2020 fax4j. All rights reserved.