public abstract class EventListenerBaseClass extends Lockable implements FilteredManagerListener<ManagerEvent>, AutoCloseable
| Modifier and Type | Class and Description |
|---|---|
class |
EventListenerBaseClass.AutoClose
This class exists so we can start and stop the listener using the new
try-with-resource of JRE7.
|
| Modifier | Constructor and Description |
|---|---|
protected |
EventListenerBaseClass(String descriptiveName,
PBX iPBX) |
| Modifier and Type | Method and Description |
|---|---|
void |
close()
Stops the listener.
|
String |
getName()
Provides a unique name for the listener.
|
void |
startListener()
we have to take the pbx as an arg here as we sometimes this is called
during the creation phase of for the pbx, and the factory can't give out
the pbx at that point event though it is initialised.
|
getDumpRateLimit, withLockclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetPriority, onManagerEvent, requiredEventspublic String getName()
FilteredManagerListenergetName in interface FilteredManagerListener<ManagerEvent>public void startListener()
public void close()
close in interface AutoCloseableCopyright © 2004–2021. All rights reserved.