public class BasicLockProvider extends ExecutionLockProvider
ExecutionLockProvider using file system.| Modifier and Type | Field and Description |
|---|---|
static String |
KEY_DIRECTORY
Profile key name of session storage directory.
|
KEY_SCOPE| Constructor and Description |
|---|
BasicLockProvider() |
| Modifier and Type | Method and Description |
|---|---|
void |
doConfigure(ServiceProfile<?> profile)
Configures this provider internally (extention point).
|
protected ExecutionLock |
newInstance(ExecutionLock.Scope lockScope,
String batchId)
Creates a new lock manager.
|
configure, newInstancepublic static final String KEY_DIRECTORY
${VARIABLE-NAME}.public void doConfigure(ServiceProfile<?> profile) throws InterruptedException, IOException
ExecutionLockProviderdoConfigure in class ExecutionLockProviderprofile - the profile of this serviceInterruptedException - if interrupted in configurationIOException - if failed to configure this serviceprotected ExecutionLock newInstance(ExecutionLock.Scope lockScope, String batchId) throws IOException
ExecutionLockProvidernewInstance in class ExecutionLockProviderlockScope - target scopebatchId - the current batch IDIOException - if failed to acquire the lockCopyright © 2011–2019 Asakusa Framework Team. All rights reserved.