org.mobicents.media.server.impl.resource.dtmf
Class GeneratorFactory
java.lang.Object
org.mobicents.media.server.impl.resource.dtmf.GeneratorFactory
- All Implemented Interfaces:
- org.mobicents.media.ComponentFactory
public class GeneratorFactory
- extends java.lang.Object
- implements org.mobicents.media.ComponentFactory
- Author:
- amit bhayani
|
Method Summary |
int |
getDuration()
Gets the minum length of generated tone. |
java.lang.String |
getName()
|
org.mobicents.media.Component |
newInstance(org.mobicents.media.server.spi.Endpoint endpoint)
|
void |
setDuration(int duration)
Modify minim duration of generated tone. |
void |
setName(java.lang.String name)
|
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
GeneratorFactory
public GeneratorFactory()
getName
public java.lang.String getName()
setName
public void setName(java.lang.String name)
getDuration
public int getDuration()
- Gets the minum length of generated tone.
- Returns:
- tone duration in milliseconds.
setDuration
public void setDuration(int duration)
- Modify minim duration of generated tone.
- Parameters:
duration - the duration of the tone in milliseconds
newInstance
public org.mobicents.media.Component newInstance(org.mobicents.media.server.spi.Endpoint endpoint)
throws org.mobicents.media.server.spi.ResourceUnavailableException
- Specified by:
newInstance in interface org.mobicents.media.ComponentFactory
- Throws:
org.mobicents.media.server.spi.ResourceUnavailableException
Copyright © 2010. All Rights Reserved.