edu.ksu.cis.projects.bogor.module.value.event
Class DefaultLockEventNotifier
java.lang.Object
edu.ksu.cis.projects.bogor.module.event.AbstractEventNotifier
edu.ksu.cis.projects.bogor.module.value.event.DefaultLockEventNotifier
- All Implemented Interfaces:
- IEventNotifier, ILockEventNotifier
public class DefaultLockEventNotifier
- extends AbstractEventNotifier
- implements ILockEventNotifier
- Version:
- CVS $Revision: 1.3 $ $Date: 2004/12/18 22:36:34 $
- Author:
- Robby
Method Summary |
void |
addLockLockedListener(ILockLockedListener lll)
|
void |
addLockNotifiedAllListener(ILockNotifiedAllListener lnal)
|
void |
addLockNotifiedListener(ILockNotifiedListener lnl)
|
void |
addLockUnlockedListener(ILockUnlockedListener lul)
|
void |
addLockUnwaitListener(ILockUnwaitListener lul)
|
void |
addLockWaitListener(ILockWaitListener lwl)
|
void |
notifyLockLocked(int threadId,
ILockValue lv,
int newLockCounter)
|
void |
notifyLockNotified(int threadId,
ILockValue lv,
int notifiedThreadId)
|
void |
notifyLockNotifiedAll(int threadId,
ILockValue lv,
int[] notifiedThreadIds)
|
void |
notifyLockUnlocked(int threadId,
ILockValue lv,
int newLockCounter)
|
void |
notifyLockUnwait(int threadId,
ILockValue lv,
int lockCounter)
|
void |
notifyLockWait(int threadId,
ILockValue lv,
int lockCounter)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
lockLockedListeners
protected ArrayList<ILockLockedListener> lockLockedListeners
lockNotifiedAllListeners
protected ArrayList<ILockNotifiedAllListener> lockNotifiedAllListeners
lockNotifiedListeners
protected ArrayList<ILockNotifiedListener> lockNotifiedListeners
lockUnlockedListeners
protected ArrayList<ILockUnlockedListener> lockUnlockedListeners
lockUnwaitListeners
protected ArrayList<ILockUnwaitListener> lockUnwaitListeners
lockWaitListeners
protected ArrayList<ILockWaitListener> lockWaitListeners
DefaultLockEventNotifier
public DefaultLockEventNotifier()
addLockLockedListener
public void addLockLockedListener(ILockLockedListener lll)
- Specified by:
addLockLockedListener
in interface ILockEventNotifier
addLockNotifiedAllListener
public void addLockNotifiedAllListener(ILockNotifiedAllListener lnal)
- Specified by:
addLockNotifiedAllListener
in interface ILockEventNotifier
addLockNotifiedListener
public void addLockNotifiedListener(ILockNotifiedListener lnl)
- Specified by:
addLockNotifiedListener
in interface ILockEventNotifier
addLockUnlockedListener
public void addLockUnlockedListener(ILockUnlockedListener lul)
- Specified by:
addLockUnlockedListener
in interface ILockEventNotifier
addLockUnwaitListener
public void addLockUnwaitListener(ILockUnwaitListener lul)
- Specified by:
addLockUnwaitListener
in interface ILockEventNotifier
addLockWaitListener
public void addLockWaitListener(ILockWaitListener lwl)
- Specified by:
addLockWaitListener
in interface ILockEventNotifier
notifyLockLocked
public void notifyLockLocked(int threadId,
ILockValue lv,
int newLockCounter)
- Specified by:
notifyLockLocked
in interface ILockEventNotifier
notifyLockNotified
public void notifyLockNotified(int threadId,
ILockValue lv,
int notifiedThreadId)
- Specified by:
notifyLockNotified
in interface ILockEventNotifier
notifyLockNotifiedAll
public void notifyLockNotifiedAll(int threadId,
ILockValue lv,
int[] notifiedThreadIds)
- Specified by:
notifyLockNotifiedAll
in interface ILockEventNotifier
notifyLockUnlocked
public void notifyLockUnlocked(int threadId,
ILockValue lv,
int newLockCounter)
- Specified by:
notifyLockUnlocked
in interface ILockEventNotifier
notifyLockUnwait
public void notifyLockUnwait(int threadId,
ILockValue lv,
int lockCounter)
- Specified by:
notifyLockUnwait
in interface ILockEventNotifier
notifyLockWait
public void notifyLockWait(int threadId,
ILockValue lv,
int lockCounter)
- Specified by:
notifyLockWait
in interface ILockEventNotifier