com.oracle.coherence.patterns.command
Interface Command<C extends Context>

All Known Subinterfaces:
PriorityCommand<C>
All Known Implementing Classes:
CommandBatch, PriorityCommandAdapter

public interface Command<C extends Context>

A Command represents some action (together with required state) that is to be asynchronously executed against a Context.

As Commands are cached objects (ie: placed in Coherence caches), they need to at least implement Serializable, or better still, implement ExternalizableLite or PortableObject.

To submit a Command for execution against a Context you should use a CommandSubmitter.

Copyright (c) 2008. All Rights Reserved. Oracle Corporation.
Oracle is a registered trademark of Oracle Corporation and/or its affiliates.

Author:
Brian Oliver
See Also:
Context, CommandSubmitter, (internal)

Method Summary
 void execute(ExecutionEnvironment<C> executionEnvironment)
          Executes the Command using the provided ExecutionEnvironment.
 

Method Detail

execute

void execute(ExecutionEnvironment<C> executionEnvironment)
Executes the Command using the provided ExecutionEnvironment.

Parameters:
executionEnvironment - The environment in which the Command is being executed.


Copyright © 2016. All rights reserved.