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
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description abstract voiddoAcquireLock(DocumentJournal journal)abstract voiddoInitializeLockCollection()abstract voiddoReleaseLock(DocumentJournal journal)voidhandleAcuireLock(EventType.AcquireLockEvent event)voidhandleInitialization(EventType.BarbelInitializedEvent event)voidhandleLockRelease(EventType.ReleaseLockEvent event)
-
-
-
Method Detail
-
handleInitialization
public void handleInitialization(EventType.BarbelInitializedEvent event)
- Specified by:
handleInitializationin interfacePessimisticLockingProtocol
-
handleAcuireLock
public void handleAcuireLock(EventType.AcquireLockEvent event)
- Specified by:
handleAcuireLockin interfacePessimisticLockingProtocol
-
handleLockRelease
public void handleLockRelease(EventType.ReleaseLockEvent event)
- Specified by:
handleLockReleasein interfacePessimisticLockingProtocol
-
doReleaseLock
public abstract void doReleaseLock(DocumentJournal journal)
-
doAcquireLock
public abstract void doAcquireLock(DocumentJournal journal)
-
doInitializeLockCollection
public abstract void doInitializeLockCollection()
-
-