|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface CommandSubmitter
A CommandSubmitter provides the mechanisms by which
we submit Command execution within Contexts.
Copyright (c) 2008. All Rights Reserved. Oracle Corporation.
Oracle is a registered trademark of Oracle Corporation and/or its affiliates.
| Method Summary | ||
|---|---|---|
|
cancelCommand(Identifier commandIdentifier)
Attempts to cancel the execution of the Command that was issued with the specified Ticket. |
|
|
submitCommand(Identifier contextIdentifier,
Command<C> command)
Asynchronously submits the provided Command for execution
against the Context with the specified Identifier and
returns a Ticket that may be used to cancel the execution of the Command. |
|
|
submitCommand(Identifier contextIdentifier,
Command<C> command,
boolean allowSubmissionWhenContextDoesNotExist)
Asynchronously submits the provided Command for execution
against the Context with the specified Identifier and
returns a Ticket that may be used to cancel the execution of the Command. |
|
| Method Detail |
|---|
<C extends Context> Identifier submitCommand(Identifier contextIdentifier,
Command<C> command)
Command for execution
against the Context with the specified Identifier and
returns a Ticket that may be used to cancel the execution of the Command.
contextIdentifier - command -
Identifier that was issued to track the execution of the Command
IllegalArgumentException - If no Context with the specified Identifier exists.
<C extends Context> Identifier submitCommand(Identifier contextIdentifier,
Command<C> command,
boolean allowSubmissionWhenContextDoesNotExist)
Command for execution
against the Context with the specified Identifier and
returns a Ticket that may be used to cancel the execution of the Command.
If the specified Context does not exist, but the allowSubmissionWhenContextDoesNotExist
parameter is true, the provided Command will be queued for
execution when the Context is created.
contextIdentifier - command - allowSubmissionWhenContextDoesNotExist -
Identifier that was issued to track the execution of the Command
IllegalArgumentException - If no Context with the specified Identifier exists
and allowSubmissionWhenContextDoesNotExist is false<C extends Context> boolean cancelCommand(Identifier commandIdentifier)
Command that was issued with the specified Ticket.
NOTE: If the Command has already been executed or has commenced execution, it may not be canceled.
Only Commands that have not been executed may be canceled. All other requests are ignored.
C - commandIdentifier -
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||