|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
Common interface for Catalan input queues. Might represent a queue of files in the filesystem, a series of rows in a database, or even a queue of emails in an SMTP mailbox. The queue is only a command retrieval interface; it does not invoke the commands.
Method Summary | |
boolean |
canQuit()
Determines if the queue can safely shut down without losing its current status. |
void |
connect()
Establishes a connection to the queue. |
void |
disconnect()
Closes down the queue. |
IForgeCommand |
getNextCommand()
Retrieves the next command in the queue, or null if queue is empty. |
boolean |
isConnected()
Determines if the queue is currently connected to a live command feed. |
void |
sendResult(CommandResult result)
|
Method Detail |
public boolean isConnected()
public void connect() throws CatalanQueueException
CatalanQueueException
- if unable to connect to queuepublic void disconnect() throws CatalanQueueException
CatalanQueueException
- if fatal error occurspublic boolean canQuit()
public IForgeCommand getNextCommand() throws CatalanQueueException, CatalanCommandException
CatalanQueueException
- if fatal queue error occurs
CatalanCommandException
- if unable to process the command datapublic void sendResult(CommandResult result) throws CatalanQueueException
CatalanQueueException
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |