public interface ManagerReader extends Runnable
Do not use this interface in your code, it is intended to be used only by the DefaultManagerConnection.
EventBuilder,
ResponseBuilder,
DefaultManagerConnection| Modifier and Type | Field and Description |
|---|---|
static String |
COMMAND_RESULT_RESPONSE_KEY |
| Modifier and Type | Method and Description |
|---|---|
void |
deregisterEventClass(Class<? extends ManagerEvent> eventClass) |
void |
die()
Terminates this reader.
|
void |
expectResponseClass(String internalActionId,
Class<? extends ManagerResponse> responseClass) |
IOException |
getTerminationException()
Returns the Exception that caused this reader to terminate if any.
|
boolean |
isDead()
Checks whether this reader is terminating or terminated.
|
void |
registerEventClass(Class<? extends ManagerEvent> event)
Registers a new event type with the underlying EventBuilderImpl.
|
void |
setSocket(SocketConnectionFacade socket)
Sets the socket to use for reading from the asterisk server.
|
static final String COMMAND_RESULT_RESPONSE_KEY
void setSocket(SocketConnectionFacade socket)
socket - the socket to use for reading from the asterisk server.void registerEventClass(Class<? extends ManagerEvent> event)
The eventClass must extend ManagerEvent.
event - class of the event to register.EventBuilder,
ManagerEventvoid expectResponseClass(String internalActionId, Class<? extends ManagerResponse> responseClass)
void die()
boolean isDead()
true if this reader is terminating or terminated,
false otherwise.IOException getTerminationException()
null if not.void deregisterEventClass(Class<? extends ManagerEvent> eventClass)
Copyright © 2004–2024. All rights reserved.