public class ResourcesPool extends Object implements ComponentFactory
| Constructor and Description |
|---|
ResourcesPool(ResourcePool<RtpConnectionImpl> rtpConnections,
ResourcePool<LocalConnectionImpl> localConnections,
ResourcePool<org.restcomm.media.resource.player.audio.AudioPlayerImpl> players,
ResourcePool<org.restcomm.media.resource.recorder.audio.AudioRecorderImpl> recorders,
ResourcePool<org.restcomm.media.resource.dtmf.DetectorImpl> dtmfDetectors,
ResourcePool<org.restcomm.media.resource.dtmf.GeneratorImpl> dtmfGenerators) |
| Modifier and Type | Method and Description |
|---|---|
Component |
newAudioComponent(ComponentType componentType) |
Connection |
newConnection(boolean isLocal) |
void |
releaseAudioComponent(Component component,
ComponentType componentType) |
void |
releaseConnection(Connection connection,
boolean isLocal) |
public ResourcesPool(ResourcePool<RtpConnectionImpl> rtpConnections, ResourcePool<LocalConnectionImpl> localConnections, ResourcePool<org.restcomm.media.resource.player.audio.AudioPlayerImpl> players, ResourcePool<org.restcomm.media.resource.recorder.audio.AudioRecorderImpl> recorders, ResourcePool<org.restcomm.media.resource.dtmf.DetectorImpl> dtmfDetectors, ResourcePool<org.restcomm.media.resource.dtmf.GeneratorImpl> dtmfGenerators)
public Component newAudioComponent(ComponentType componentType)
newAudioComponent in interface ComponentFactorypublic void releaseAudioComponent(Component component, ComponentType componentType)
releaseAudioComponent in interface ComponentFactorypublic Connection newConnection(boolean isLocal)
newConnection in interface ComponentFactorypublic void releaseConnection(Connection connection, boolean isLocal)
releaseConnection in interface ComponentFactoryCopyright © 2017 TeleStax, Inc.. All Rights Reserved.