public class WorkStateHelper extends Object
Modifier and Type | Field and Description |
---|---|
protected static String |
CANCELED |
protected static String |
KV_NAME |
protected static String |
STATE_SUFFIX |
Modifier and Type | Method and Description |
---|---|
protected static KeyValueStore |
getKeyValueStore() |
protected static Work.State |
getState(String workId) |
protected static String |
getStateKey(String workId) |
protected static boolean |
isCanceled(String workId) |
protected static void |
setCanceled(String workId) |
protected static void |
setState(String workId,
Work.State state,
long ttl) |
protected static final String KV_NAME
protected static final String STATE_SUFFIX
protected static final String CANCELED
protected static KeyValueStore getKeyValueStore()
protected static Work.State getState(String workId)
protected static String getStateKey(String workId)
protected static boolean isCanceled(String workId)
protected static void setCanceled(String workId)
protected static void setState(String workId, Work.State state, long ttl)
Copyright © 2018 Nuxeo. All rights reserved.