mirror of
https://github.com/Kingsrook/qqq.git
synced 2025-07-18 13:10:44 +00:00
CE-978 - Moving from 6 hours to 5 hours for clean hours in addition to running every 30min. Also added status to interface.
This commit is contained in:
@ -46,8 +46,8 @@ public class InMemoryStateProvider implements StateProviderInterface
|
|||||||
|
|
||||||
private final Map<AbstractStateKey, Object> map;
|
private final Map<AbstractStateKey, Object> map;
|
||||||
|
|
||||||
private static int jobPeriodSeconds = 60 * 60; // 1 hour
|
private static int jobPeriodSeconds = 60 * 30; // 30 minutes
|
||||||
private static int cleanHours = 6;
|
private static int cleanHours = 5;
|
||||||
private static int jobInitialDelay = 60 * 60 * cleanHours;
|
private static int jobInitialDelay = 60 * 60 * cleanHours;
|
||||||
|
|
||||||
|
|
||||||
@ -151,6 +151,18 @@ public class InMemoryStateProvider implements StateProviderInterface
|
|||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
/*******************************************************************************
|
||||||
|
** Get the current status
|
||||||
|
*
|
||||||
|
*******************************************************************************/
|
||||||
|
@Override
|
||||||
|
public String status()
|
||||||
|
{
|
||||||
|
return ("InMemoryStateProvider map size: " + map.size());
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
/*******************************************************************************
|
/*******************************************************************************
|
||||||
** Clean entries that started before the given Instant
|
** Clean entries that started before the given Instant
|
||||||
*
|
*
|
||||||
|
@ -59,6 +59,11 @@ public interface StateProviderInterface
|
|||||||
*******************************************************************************/
|
*******************************************************************************/
|
||||||
void remove(AbstractStateKey key);
|
void remove(AbstractStateKey key);
|
||||||
|
|
||||||
|
/*******************************************************************************
|
||||||
|
** Get the current status
|
||||||
|
*******************************************************************************/
|
||||||
|
String status();
|
||||||
|
|
||||||
/*******************************************************************************
|
/*******************************************************************************
|
||||||
** Clean entries that started before the given Instant
|
** Clean entries that started before the given Instant
|
||||||
*******************************************************************************/
|
*******************************************************************************/
|
||||||
|
@ -127,6 +127,18 @@ public class TempFileStateProvider implements StateProviderInterface
|
|||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
/*******************************************************************************
|
||||||
|
** Get the current status
|
||||||
|
*
|
||||||
|
*******************************************************************************/
|
||||||
|
@Override
|
||||||
|
public String status()
|
||||||
|
{
|
||||||
|
return ("TempFileStateProvider status not supported");
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
/*******************************************************************************
|
/*******************************************************************************
|
||||||
** Clean entries that started before the given Instant
|
** Clean entries that started before the given Instant
|
||||||
*******************************************************************************/
|
*******************************************************************************/
|
||||||
|
Reference in New Issue
Block a user