|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.oracle.coherence.patterns.command.commands.CommandBatch<C>
public class CommandBatch<C extends Context>
A CommandBatch allows a batch (List) of Commands to be
submitted to a single Context for execution in an all or nothing mode.
NOTE: Any exception caused by a Command in the CommandBatch will
cause the fail-fast of the processing. Commands not yet processed will be discarded.
Copyright (c) 2008. All Rights Reserved. Oracle Corporation.
Oracle is a registered trademark of Oracle Corporation and/or its affiliates.
| Constructor Summary | |
|---|---|
CommandBatch()
Required for ExternalizableLite and PortableObject. |
|
CommandBatch(List<Command<C>> commands)
Standard Constructor. |
|
| Method Summary | |
|---|---|
void |
execute(ExecutionEnvironment<C> executionEnvironment)
Executes the Command using the provided
ExecutionEnvironment. |
void |
readExternal(DataInput in)
|
void |
readExternal(com.tangosol.io.pof.PofReader reader)
|
String |
toString()
|
void |
writeExternal(DataOutput out)
|
void |
writeExternal(com.tangosol.io.pof.PofWriter writer)
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public CommandBatch()
ExternalizableLite and PortableObject.
public CommandBatch(List<Command<C>> commands)
commands - | Method Detail |
|---|
public void execute(ExecutionEnvironment<C> executionEnvironment)
Command using the provided
ExecutionEnvironment.
execute in interface Command<C extends Context>executionEnvironment - The environment in which the Command
is being executed.
public void readExternal(DataInput in)
throws IOException
readExternal in interface com.tangosol.io.ExternalizableLiteIOException
public void writeExternal(DataOutput out)
throws IOException
writeExternal in interface com.tangosol.io.ExternalizableLiteIOException
public void readExternal(com.tangosol.io.pof.PofReader reader)
throws IOException
readExternal in interface com.tangosol.io.pof.PortableObjectIOException
public void writeExternal(com.tangosol.io.pof.PofWriter writer)
throws IOException
writeExternal in interface com.tangosol.io.pof.PortableObjectIOExceptionpublic String toString()
toString in class Object
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||