public interface APCMailbox extends BufferedEventsDestination<JAMessage>
Modifier and Type | Method and Description |
---|---|
boolean |
dispatchEvents()
The dispatchMessages method processes any messages in the queue.
|
JARequest |
getCurrentRequest()
Returns the request message being processed.
|
EventQueue<ArrayList<JAMessage>> |
getEventQueue()
Returns the event queue.
|
ExceptionHandler |
getExceptionHandler()
Returns the exception handler.
|
boolean |
isEmpty()
The isEmpty method returns true when there are no pending messages,
though the results may not always be correct due to concurrency issues.
|
void |
response(JARequest jaRequest,
Object unwrappedResponse) |
void |
send(BufferedEventsDestination<JAMessage> destination,
JARequest request)
Buffer the request for subsequent sending.
|
void |
sendPendingMessages()
Send any pending messages.
|
void |
setCurrentRequest(JARequest currentRequest)
Assigns the request message to be processed.
|
void |
setExceptionHandler(ExceptionHandler exceptionHandler)
Assign an exception handler.
|
void |
setInitialBufferCapacity(int initialBufferCapacity)
Set the initial capacity for buffered outgoing messages.
|
putBufferedEvents
ExceptionHandler getExceptionHandler()
void setExceptionHandler(ExceptionHandler exceptionHandler)
exceptionHandler
- The exception handler.JARequest getCurrentRequest()
void setCurrentRequest(JARequest currentRequest)
currentRequest
- The request message being processed.void sendPendingMessages()
void setInitialBufferCapacity(int initialBufferCapacity)
initialBufferCapacity
- The initial capacity for buffered outgoing messages.void send(BufferedEventsDestination<JAMessage> destination, JARequest request)
destination
- Buffered events receiver.request
- The request to be sent.boolean isEmpty()
boolean dispatchEvents()
EventQueue<ArrayList<JAMessage>> getEventQueue()
Copyright © 2012. All Rights Reserved.