deprecated scheduling support for JDK 1.3 Timer
This commit is contained in:
@@ -27,7 +27,7 @@ import org.springframework.util.ConcurrencyThrottleSupport;
|
||||
import org.springframework.util.CustomizableThreadCreator;
|
||||
|
||||
/**
|
||||
* TaskExecutor implementation that fires up a new Thread for each task,
|
||||
* {@link TaskExecutor} implementation that fires up a new Thread for each task,
|
||||
* executing it asynchronously.
|
||||
*
|
||||
* <p>Supports limiting concurrent threads through the "concurrencyLimit"
|
||||
@@ -41,7 +41,6 @@ import org.springframework.util.CustomizableThreadCreator;
|
||||
* @since 2.0
|
||||
* @see #setConcurrencyLimit
|
||||
* @see SyncTaskExecutor
|
||||
* @see org.springframework.scheduling.timer.TimerTaskExecutor
|
||||
* @see org.springframework.scheduling.concurrent.ThreadPoolTaskExecutor
|
||||
* @see org.springframework.scheduling.commonj.WorkManagerTaskExecutor
|
||||
*/
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
/*
|
||||
* Copyright 2002-2006 the original author or authors.
|
||||
* Copyright 2002-2009 the original author or authors.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
@@ -16,16 +16,16 @@
|
||||
|
||||
package org.springframework.core.task;
|
||||
|
||||
import org.springframework.util.Assert;
|
||||
|
||||
import java.io.Serializable;
|
||||
|
||||
import org.springframework.util.Assert;
|
||||
|
||||
/**
|
||||
* <code>TaskExecutor</code> implementation that executes each task
|
||||
* <i>synchronously</i> in the calling thread.
|
||||
*
|
||||
* {@link TaskExecutor} implementation that executes each task <i>synchronously</i>
|
||||
* in the calling thread.
|
||||
*
|
||||
* <p>Mainly intended for testing scenarios.
|
||||
*
|
||||
*
|
||||
* <p>Execution in the calling thread does have the advantage of participating
|
||||
* in it's thread context, for example the thread context class loader or the
|
||||
* thread's current transaction association. That said, in many cases,
|
||||
@@ -33,9 +33,8 @@ import java.io.Serializable;
|
||||
* <code>TaskExecutor</code> instead for such scenarios.
|
||||
*
|
||||
* @author Juergen Hoeller
|
||||
* @see SimpleAsyncTaskExecutor
|
||||
* @see org.springframework.scheduling.timer.TimerTaskExecutor
|
||||
* @since 2.0
|
||||
* @see SimpleAsyncTaskExecutor
|
||||
*/
|
||||
public class SyncTaskExecutor implements TaskExecutor, Serializable {
|
||||
|
||||
|
||||
Reference in New Issue
Block a user