public class ManagerWriterImpl extends Lockable implements ManagerWriter
| Constructor and Description |
|---|
ManagerWriterImpl()
Creates a new ManagerWriter.
|
| Modifier and Type | Method and Description |
|---|---|
void |
sendAction(ManagerAction action,
String internalActionId)
Sends the given action to the asterisk server.
|
void |
setSocket(SocketConnectionFacade socket)
Sets the socket to use for writing to Asterisk.
|
void |
setTargetVersion(AsteriskVersion version)
Sets the version of the target Asterisk server.
|
getDumpRateLimit, withLockpublic void setTargetVersion(AsteriskVersion version)
ManagerWritersetTargetVersion in interface ManagerWriterversion - the version of the target Asterisk server.public void setSocket(SocketConnectionFacade socket)
ManagerWritersetSocket in interface ManagerWritersocket - the socket to use for writing to Asterisk.public void sendAction(ManagerAction action, String internalActionId) throws IOException
ManagerWritersendAction in interface ManagerWriteraction - the action to send to the asterisk server.internalActionId - the internal action id to add.IOException - if there is a problem sending the action.Copyright © 2004–2022. All rights reserved.