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) |
AbstractMgcpSignal(String packageName,
String symbol,
SignalType type,
int requestId,
NotifiedEntity notifiedEntity) |
AbstractMgcpSignal(String packageName,
String symbol,
SignalType type,
int requestId,
NotifiedEntity notifiedEntity,
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.
|
NotifiedEntity |
getNotifiedEntity()
Gets the entity which requested the notification of events resulting from the completion of the signal.
|
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, NotifiedEntity notifiedEntity, Map<String,String> parameters)
public AbstractMgcpSignal(String packageName, String symbol, SignalType type, int requestId, Map<String,String> parameters)
public AbstractMgcpSignal(String packageName, String symbol, SignalType type, int requestId, NotifiedEntity notifiedEntity)
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 MgcpSignalpublic NotifiedEntity getNotifiedEntity()
MgcpSignalThis parameter is equal to the NotifiedEntity parameter of the NotificationRequest that triggered this notification. The parameter is absent if there was no such parameter in the triggering request.
getNotifiedEntity 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.