Class AbstractLockingListener
- java.lang.Object
-
- org.projectbarbel.histo.extension.AbstractLockingListener
-
- All Implemented Interfaces:
PessimisticLockingProtocol
public abstract class AbstractLockingListener extends Object implements PessimisticLockingProtocol
Abstract class to use when implementing custom licking listeners.- Author:
- Niklas Schlimm
-
-
Constructor Summary
Constructors Constructor Description AbstractLockingListener()
-
Method Summary
Modifier and Type Method Description abstract void
doAcquireLock(DocumentJournal journal)
abstract void
doInitializeLockCollection()
abstract void
doReleaseLock(DocumentJournal journal)
void
handleAcuireLock(EventType.AcquireLockEvent event)
void
handleInitialization(EventType.BarbelInitializedEvent event)
void
handleLockRelease(EventType.ReleaseLockEvent event)
-
-
-
Method Detail
-
handleInitialization
public void handleInitialization(EventType.BarbelInitializedEvent event)
- Specified by:
handleInitialization
in interfacePessimisticLockingProtocol
-
handleAcuireLock
public void handleAcuireLock(EventType.AcquireLockEvent event)
- Specified by:
handleAcuireLock
in interfacePessimisticLockingProtocol
-
handleLockRelease
public void handleLockRelease(EventType.ReleaseLockEvent event)
- Specified by:
handleLockRelease
in interfacePessimisticLockingProtocol
-
doReleaseLock
public abstract void doReleaseLock(DocumentJournal journal)
-
doAcquireLock
public abstract void doAcquireLock(DocumentJournal journal)
-
doInitializeLockCollection
public abstract void doInitializeLockCollection()
-
-