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, newInstance
public static final String KEY_DIRECTORY
${VARIABLE-NAME}
.public void doConfigure(ServiceProfile<?> profile) throws InterruptedException, IOException
ExecutionLockProvider
doConfigure
in class ExecutionLockProvider
profile
- the profile of this serviceInterruptedException
- if interrupted in configurationIOException
- if failed to configure this serviceprotected ExecutionLock newInstance(ExecutionLock.Scope lockScope, String batchId) throws IOException
ExecutionLockProvider
newInstance
in class ExecutionLockProvider
lockScope
- target scopebatchId
- the current batch IDIOException
- if failed to acquire the lockCopyright © 2011–2019 Asakusa Framework Team. All rights reserved.