com.oracle.coherence.patterns.command.commands
Class PriorityCommandAdapter<C extends Context>

java.lang.Object
  extended by com.oracle.coherence.patterns.command.commands.PriorityCommandAdapter<C>
Type Parameters:
C -
All Implemented Interfaces:
Command<C>, PriorityCommand<C>, com.tangosol.io.ExternalizableLite, com.tangosol.io.pof.PortableObject, Serializable

public class PriorityCommandAdapter<C extends Context>
extends Object
implements PriorityCommand<C>, com.tangosol.io.ExternalizableLite, com.tangosol.io.pof.PortableObject

A PriorityCommandAdapter turn a regular Command into a PriorityCommand.

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:
Serialized Form

Constructor Summary
PriorityCommandAdapter()
          For ExternalizableLite and PortableObject.
PriorityCommandAdapter(Command<C> command)
          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

PriorityCommandAdapter

public PriorityCommandAdapter()
For ExternalizableLite and PortableObject.


PriorityCommandAdapter

public PriorityCommandAdapter(Command<C> command)
Standard Constructor.

Parameters:
command -
Method Detail

execute

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

Specified by:
execute in interface Command<C extends Context>
Parameters:
executionEnvironment - The environment in which the Command is being executed.

readExternal

public void readExternal(DataInput in)
                  throws IOException

Specified by:
readExternal in interface com.tangosol.io.ExternalizableLite
Throws:
IOException

writeExternal

public void writeExternal(DataOutput out)
                   throws IOException

Specified by:
writeExternal in interface com.tangosol.io.ExternalizableLite
Throws:
IOException

readExternal

public void readExternal(com.tangosol.io.pof.PofReader reader)
                  throws IOException

Specified by:
readExternal in interface com.tangosol.io.pof.PortableObject
Throws:
IOException

writeExternal

public void writeExternal(com.tangosol.io.pof.PofWriter writer)
                   throws IOException

Specified by:
writeExternal in interface com.tangosol.io.pof.PortableObject
Throws:
IOException

toString

public String toString()

Overrides:
toString in class Object


Copyright © 2016. All rights reserved.