Class RunnableMappedCommand

  extended by java.util.AbstractMap<K,V>
      extended by java.util.HashMap
          extended by com.codemonster.surinam.export.service.command.MappedCommand
              extended by com.codemonster.surinam.export.service.command.RunnableMappedCommand
All Implemented Interfaces:
RawCommand, Serializable, Cloneable, Runnable, Map

public class RunnableMappedCommand
extends MappedCommand
implements Runnable

By extending MappedCommand and impementing Runnable, it is possible to turn the command pattern around and take advantage of Java's Executor model which will allow thread scheduling and reuse.

See Also:
Serialized Form

Nested Class Summary
Nested classes/interfaces inherited from class java.util.AbstractMap
AbstractMap.SimpleEntry<K,V>, AbstractMap.SimpleImmutableEntry<K,V>
Constructor Summary
Method Summary
 void run()
Methods inherited from class com.codemonster.surinam.export.service.command.MappedCommand
getContractName, getOperationCode, getOperationName, getParameters, setContractName, setOperationCode, setOperationName, setParameters
Methods inherited from class java.util.HashMap
clear, clone, containsKey, containsValue, entrySet, get, isEmpty, keySet, put, putAll, remove, size, values
Methods inherited from class java.util.AbstractMap
equals, hashCode, toString
Methods inherited from class java.lang.Object
getClass, notify, notifyAll, wait, wait, wait
Methods inherited from interface java.util.Map
equals, hashCode

Constructor Detail


public RunnableMappedCommand()
Method Detail


public void run()
Specified by:
run in interface Runnable

Copyright © 2010. All Rights Reserved.