|
Asterisk-Java | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface ManagerReader
The ManagerReader reads events and responses from the asterisk server, parses them using EventBuilderImpl and ResponseBuilder and dispatches them to the associated ManagerConnection.
Do not use this interface in your code, it is intended to be used only by the DefaultManagerConnection.
EventBuilder,
ResponseBuilder,
DefaultManagerConnection| Field Summary | |
|---|---|
static java.lang.String |
COMMAND_RESULT_RESPONSE_KEY
|
| Method Summary | |
|---|---|
void |
die()
Terminates this reader. |
void |
expectResponseClass(java.lang.String internalActionId,
java.lang.Class<? extends ManagerResponse> responseClass)
|
java.io.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(java.lang.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. |
| Methods inherited from interface java.lang.Runnable |
|---|
run |
| Field Detail |
|---|
static final java.lang.String COMMAND_RESULT_RESPONSE_KEY
| Method Detail |
|---|
void setSocket(SocketConnectionFacade socket)
socket - the socket to use for reading from the asterisk server.void registerEventClass(java.lang.Class<? extends ManagerEvent> event)
The eventClass must extend ManagerEvent.
event - class of the event to register.EventBuilder,
ManagerEvent
void expectResponseClass(java.lang.String internalActionId,
java.lang.Class<? extends ManagerResponse> responseClass)
void die()
boolean isDead()
true if this reader is terminating or terminated,
false otherwise.java.io.IOException getTerminationException()
null if not.
|
Asterisk-Java | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||