|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.oracle.coherence.patterns.command.DefaultCommandSubmitter
public class DefaultCommandSubmitter
The default implementation of a CommandSubmitter.
Copyright (c) 2008. All Rights Reserved. Oracle Corporation.
Oracle is a registered trademark of Oracle Corporation and/or its affiliates.
CommandSubmitter| Constructor Summary | |
|---|---|
DefaultCommandSubmitter()
Standard Constructor |
|
| Method Summary | ||
|---|---|---|
|
cancelCommand(Identifier commandIdentifier)
Attempts to cancel the execution of the Command that was issued with the specified Ticket. |
|
static CommandSubmitter |
getInstance()
Returns an instance of the DefaultCommandSubmitter. |
|
|
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 acceptCommandIfContextDoesNotExist)
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. |
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public DefaultCommandSubmitter()
| Method Detail |
|---|
public <C extends Context> Identifier submitCommand(Identifier contextIdentifier,
Command<C> command,
boolean acceptCommandIfContextDoesNotExist)
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.
submitCommand in interface CommandSubmitterIdentifier that was issued to track the execution of the Command
public <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.
submitCommand in interface CommandSubmitterIdentifier that was issued to track the execution of the Commandpublic <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.
cancelCommand in interface CommandSubmitterpublic static CommandSubmitter getInstance()
DefaultCommandSubmitter.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||