org.camunda.bpm.engine.impl.jobexecutor.historycleanup
Class HistoryCleanupJobHandlerConfiguration

java.lang.Object
  extended by org.camunda.bpm.engine.impl.jobexecutor.historycleanup.HistoryCleanupJobHandlerConfiguration
All Implemented Interfaces:
JobHandlerConfiguration

public class HistoryCleanupJobHandlerConfiguration
extends Object
implements JobHandlerConfiguration

Author:
Svetlana Dorokhova

Field Summary
static String JOB_CONFIG_COUNT_EMPTY_RUNS
           
static String JOB_CONFIG_EXECUTE_AT_ONCE
           
static int MAX_DELAY
           
static int START_DELAY
           
 
Constructor Summary
HistoryCleanupJobHandlerConfiguration()
           
 
Method Summary
static HistoryCleanupJobHandlerConfiguration fromJson(JSONObject jsonObject)
           
 int getCountEmptyRuns()
           
 Date getNextRunWithDelay(Date date)
          The delay between two "empty" runs increases twice each time until it reaches MAX_DELAY value.
 boolean isImmediatelyDue()
           
 void setCountEmptyRuns(int countEmptyRuns)
           
 void setImmediatelyDue(boolean immediatelyDue)
           
 String toCanonicalString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

START_DELAY

public static final int START_DELAY
See Also:
Constant Field Values

MAX_DELAY

public static final int MAX_DELAY
See Also:
Constant Field Values

JOB_CONFIG_COUNT_EMPTY_RUNS

public static final String JOB_CONFIG_COUNT_EMPTY_RUNS
See Also:
Constant Field Values

JOB_CONFIG_EXECUTE_AT_ONCE

public static final String JOB_CONFIG_EXECUTE_AT_ONCE
See Also:
Constant Field Values
Constructor Detail

HistoryCleanupJobHandlerConfiguration

public HistoryCleanupJobHandlerConfiguration()
Method Detail

toCanonicalString

public String toCanonicalString()
Specified by:
toCanonicalString in interface JobHandlerConfiguration

fromJson

public static HistoryCleanupJobHandlerConfiguration fromJson(JSONObject jsonObject)

getNextRunWithDelay

public Date getNextRunWithDelay(Date date)
The delay between two "empty" runs increases twice each time until it reaches MAX_DELAY value.

Parameters:
date - date to count delay from
Returns:
date with delay

getCountEmptyRuns

public int getCountEmptyRuns()

setCountEmptyRuns

public void setCountEmptyRuns(int countEmptyRuns)

isImmediatelyDue

public boolean isImmediatelyDue()

setImmediatelyDue

public void setImmediatelyDue(boolean immediatelyDue)


Copyright © 2017 camunda services GmbH. All rights reserved.