public class BatchLockFactory extends Object implements org.mule.runtime.api.lifecycle.Initialisable
LockProvider for the batch module. Because batch jobs are not distributed accross the cluster when running
in HA, that means that Batch locks also need to not be distributed. Because of that, batch can't use the default
LockFactory from the Registry when running in HA.
This implementation will always return a local Lock that batch can safely use in any scenario
| Constructor and Description |
|---|
BatchLockFactory() |
| Modifier and Type | Method and Description |
|---|---|
Lock |
createLock(String lockId)
Provides a lock to create thread safe Mule components.
|
void |
initialise() |
Copyright © 2006–2022 MuleSoft, Inc.. All rights reserved.