org.axonframework.util
Class SynchronousTaskExecutor

java.lang.Object
  extended by org.axonframework.util.SynchronousTaskExecutor
All Implemented Interfaces:
Executor

Deprecated. This class has been renamed to DirectExecutor to prevent confusion with the synchronized keyword. This class will be removed in the next release.

@Deprecated
public final class SynchronousTaskExecutor
extends Object
implements Executor

Simple executor implementation that runs a given Runnable immediately in the calling thread.

Since:
0.6
Author:
Allard Buijze

Field Summary
static SynchronousTaskExecutor INSTANCE
          Deprecated. Use DirectExecutor.INSTANCE instead.
 
Method Summary
 void execute(Runnable command)
          Deprecated. Executes the given command immediately in the current thread.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

INSTANCE

@Deprecated
public static final SynchronousTaskExecutor INSTANCE
Deprecated. Use DirectExecutor.INSTANCE instead.
Returns a singleton instance of the SynchronousTaskExecutor.

Method Detail

execute

public void execute(Runnable command)
Deprecated. 
Executes the given command immediately in the current thread.

Specified by:
execute in interface Executor
Parameters:
command - the command to execute.


Copyright © 2011. All Rights Reserved.