public abstract class AbstractMgcpSignal extends Object implements MgcpSignal
| Modifier and Type | Field and Description |
|---|---|
protected AtomicBoolean |
executing |
| Constructor and Description |
|---|
AbstractMgcpSignal(String packageName,
String symbol,
SignalType type,
int requestId) |
AbstractMgcpSignal(String packageName,
String symbol,
SignalType type,
int requestId,
Map<String,String> parameters) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(Object obj) |
void |
forget(MgcpEventObserver observer) |
String |
getName()
Gets the name of the signal which is composed of the MGCP package plus the signal name.
|
String |
getParameter(String name) |
int |
getRequestId()
Gets the identifier of the request that submitted the signal.
|
SignalType |
getSignalType()
Gets the type of signal.
|
String |
getSymbol() |
boolean |
isExecuting()
Gets whether the signal is currently executing.
|
protected abstract boolean |
isParameterSupported(String name) |
void |
notify(Object originator,
MgcpEvent event) |
void |
observe(MgcpEventObserver observer) |
String |
toString() |
clone, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitcancel, executeprotected final AtomicBoolean executing
public AbstractMgcpSignal(String packageName, String symbol, SignalType type, int requestId, Map<String,String> parameters)
public AbstractMgcpSignal(String packageName, String symbol, SignalType type, int requestId)
public String getSymbol()
public String getName()
MgcpSignalgetName in interface MgcpSignalpublic SignalType getSignalType()
MgcpSignalgetSignalType in interface MgcpSignalpublic int getRequestId()
MgcpSignalgetRequestId in interface MgcpSignalprotected abstract boolean isParameterSupported(String name)
public boolean isExecuting()
MgcpSignalisExecuting in interface MgcpSignaltrue if executing; otherwise returns falsepublic void observe(MgcpEventObserver observer)
observe in interface MgcpEventSubjectpublic void forget(MgcpEventObserver observer)
forget in interface MgcpEventSubjectpublic void notify(Object originator, MgcpEvent event)
notify in interface MgcpEventSubjectCopyright © 2017 TeleStax, Inc.. All Rights Reserved.