接口的使用
org.springframework.core.task.TaskExecutor
使用TaskExecutor的程序包 程序包 说明 org.springframework.core.task This package defines Spring's core TaskExecutor abstraction, and provides SyncTaskExecutor and SimpleAsyncTaskExecutor implementations.org.springframework.core.task.support Support classes for Spring's TaskExecutor abstraction.org.springframework.jca.work Convenience classes for scheduling based on the JCA WorkManager facility, as supported within ResourceAdapters.org.springframework.jms.listener This package contains the base message listener container facility.org.springframework.messaging.simp.config Configuration support for WebSocket messaging using higher level messaging protocols.org.springframework.scheduling General exceptions for Spring's scheduling support, independent of any specific scheduling system.org.springframework.scheduling.commonj Convenience classes for scheduling based on the CommonJ WorkManager/TimerManager facility, as supported by IBM WebSphere 6.0+ and BEA WebLogic 9.0+.org.springframework.scheduling.concurrent Scheduling convenience classes for thejava.util.concurrent
andjavax.enterprise.concurrent
packages, allowing to set up a ThreadPoolExecutor or ScheduledThreadPoolExecutor as a bean in a Spring context.org.springframework.scheduling.config Support package for declarative scheduling configuration, with XML schema being the primary configuration format.org.springframework.scheduling.quartz Support classes for the open source scheduler Quartz, allowing to set up Quartz Schedulers, JobDetails and Triggers as beans in a Spring context.org.springframework.web.servlet.mvc.method.annotation MVC infrastructure for annotation-based handler method processing, building on theorg.springframework.web.method.annotation
package.org.springframework.web.socket.client.standard Client-side classes for use with standard Java WebSocket endpoints.org.springframework.web.socket.config Configuration support for WebSocket request handling.org.springframework.web.socket.sockjs.client SockJS client implementation ofWebSocketClient
.org.springframework.core.task中TaskExecutor的使用
org.springframework.core.task中TaskExecutor的子接口 修饰符和类型 接口 说明 interface
AsyncListenableTaskExecutor
Extension of theAsyncTaskExecutor
interface, adding the capability to submit tasks forListenableFutures
.interface
AsyncTaskExecutor
Extended interface for asynchronousTaskExecutor
implementations, offering an overloadedAsyncTaskExecutor.execute(Runnable, long)
variant with a start timeout parameter as well support forCallable
.实现TaskExecutor的org.springframework.core.task中的类 修饰符和类型 类 说明 class
SimpleAsyncTaskExecutor
TaskExecutor
implementation that fires up a new Thread for each task, executing it asynchronously.class
SyncTaskExecutor
TaskExecutor
implementation that executes each task synchronously in the calling thread.org.springframework.core.task.support中TaskExecutor的使用
实现TaskExecutor的org.springframework.core.task.support中的类 修饰符和类型 类 说明 class
TaskExecutorAdapter
Adapter that takes a JDKjava.util.concurrent.Executor
and exposes a SpringTaskExecutor
for it.参数类型为TaskExecutor的org.springframework.core.task.support中的构造器 构造器 说明 ConcurrentExecutorAdapter(TaskExecutor taskExecutor)
Create a new ConcurrentExecutorAdapter for the given Spring TaskExecutor.ExecutorServiceAdapter(TaskExecutor taskExecutor)
Create a new ExecutorServiceAdapter, using the given target executor.org.springframework.jca.work中TaskExecutor的使用
实现TaskExecutor的org.springframework.jca.work中的类 修饰符和类型 类 说明 class
WorkManagerTaskExecutor
TaskExecutor
implementation that delegates to a JCA 1.7 WorkManager, implementing theWorkManager
interface.参数类型为TaskExecutor的org.springframework.jca.work中的方法 修饰符和类型 方法 说明 protected long
SimpleTaskWorkManager. executeWork(TaskExecutor taskExecutor, Work work, long startTimeout, boolean blockUntilStarted, ExecutionContext executionContext, WorkListener workListener)
Execute the given Work on the specified TaskExecutor.void
SimpleTaskWorkManager. setSyncTaskExecutor(TaskExecutor syncTaskExecutor)
Specify the TaskExecutor to use for synchronous work execution (i.e.org.springframework.jms.listener中TaskExecutor的使用
返回TaskExecutor的org.springframework.jms.listener中的方法 修饰符和类型 方法 说明 protected TaskExecutor
DefaultMessageListenerContainer. createDefaultTaskExecutor()
Create a default TaskExecutor.org.springframework.messaging.simp.config中TaskExecutor的使用
返回TaskExecutor的org.springframework.messaging.simp.config中的方法 修饰符和类型 方法 说明 TaskExecutor
AbstractMessageBrokerConfiguration. brokerChannelExecutor()
TaskExecutor
AbstractMessageBrokerConfiguration. clientInboundChannelExecutor()
TaskExecutor
AbstractMessageBrokerConfiguration. clientOutboundChannelExecutor()
org.springframework.scheduling中TaskExecutor的使用
org.springframework.scheduling中TaskExecutor的子接口 修饰符和类型 接口 说明 interface
SchedulingTaskExecutor
ATaskExecutor
extension exposing scheduling characteristics that are relevant to potential task submitters.org.springframework.scheduling.commonj中TaskExecutor的使用
实现TaskExecutor的org.springframework.scheduling.commonj中的类 修饰符和类型 类 说明 class
WorkManagerTaskExecutor
已过时。as of 5.1, in favor of the EE 7/8 basedDefaultManagedTaskExecutor
org.springframework.scheduling.concurrent中TaskExecutor的使用
实现TaskExecutor的org.springframework.scheduling.concurrent中的类 修饰符和类型 类 说明 class
ConcurrentTaskExecutor
Adapter that takes ajava.util.concurrent.Executor
and exposes a SpringTaskExecutor
for it.class
ConcurrentTaskScheduler
Adapter that takes ajava.util.concurrent.ScheduledExecutorService
and exposes a SpringTaskScheduler
for it.class
DefaultManagedTaskExecutor
JNDI-based variant ofConcurrentTaskExecutor
, performing a default lookup for JSR-236's "java:comp/DefaultManagedExecutorService" in a Java EE 7/8 environment.class
DefaultManagedTaskScheduler
JNDI-based variant ofConcurrentTaskScheduler
, performing a default lookup for JSR-236's "java:comp/DefaultManagedScheduledExecutorService" in a Java EE 7 environment.class
ThreadPoolTaskExecutor
JavaBean that allows for configuring aThreadPoolExecutor
in bean style (through its "corePoolSize", "maxPoolSize", "keepAliveSeconds", "queueCapacity" properties) and exposing it as a SpringTaskExecutor
.class
ThreadPoolTaskScheduler
Implementation of Spring'sTaskScheduler
interface, wrapping a nativeScheduledThreadPoolExecutor
.org.springframework.scheduling.config中TaskExecutor的使用
返回TaskExecutor的org.springframework.scheduling.config中的方法 修饰符和类型 方法 说明 TaskExecutor
TaskExecutorFactoryBean. getObject()
返回变量类型为TaskExecutor的类型的org.springframework.scheduling.config中的方法 修饰符和类型 方法 说明 Class<? extends TaskExecutor>
TaskExecutorFactoryBean. getObjectType()
org.springframework.scheduling.quartz中TaskExecutor的使用
实现TaskExecutor的org.springframework.scheduling.quartz中的类 修饰符和类型 类 说明 class
SimpleThreadPoolTaskExecutor
Subclass of Quartz's SimpleThreadPool that implements Spring'sTaskExecutor
interface and listens to Spring lifecycle callbacks.org.springframework.web.servlet.mvc.method.annotation中TaskExecutor的使用
参数类型为TaskExecutor的org.springframework.web.servlet.mvc.method.annotation中的构造器 构造器 说明 ResponseBodyEmitterReturnValueHandler(List<HttpMessageConverter<?>> messageConverters, ReactiveAdapterRegistry registry, TaskExecutor executor, ContentNegotiationManager manager)
Complete constructor with pluggable "reactive" type support.org.springframework.web.socket.client.standard中TaskExecutor的使用
返回TaskExecutor的org.springframework.web.socket.client.standard中的方法 修饰符和类型 方法 说明 TaskExecutor
AnnotatedEndpointConnectionManager. getTaskExecutor()
Return the configuredTaskExecutor
.TaskExecutor
EndpointConnectionManager. getTaskExecutor()
Return the configuredTaskExecutor
.参数类型为TaskExecutor的org.springframework.web.socket.client.standard中的方法 修饰符和类型 方法 说明 void
AnnotatedEndpointConnectionManager. setTaskExecutor(TaskExecutor taskExecutor)
Set aTaskExecutor
to use to open the connection.void
EndpointConnectionManager. setTaskExecutor(TaskExecutor taskExecutor)
Set aTaskExecutor
to use to open connections.org.springframework.web.socket.config中TaskExecutor的使用
参数类型为TaskExecutor的org.springframework.web.socket.config中的方法 修饰符和类型 方法 说明 void
WebSocketMessageBrokerStats. setInboundChannelExecutor(TaskExecutor inboundChannelExecutor)
void
WebSocketMessageBrokerStats. setOutboundChannelExecutor(TaskExecutor outboundChannelExecutor)
org.springframework.web.socket.sockjs.client中TaskExecutor的使用
返回TaskExecutor的org.springframework.web.socket.sockjs.client中的方法 修饰符和类型 方法 说明 TaskExecutor
RestTemplateXhrTransport. getTaskExecutor()
Return the configuredTaskExecutor
.参数类型为TaskExecutor的org.springframework.web.socket.sockjs.client中的方法 修饰符和类型 方法 说明 void
RestTemplateXhrTransport. setTaskExecutor(TaskExecutor taskExecutor)
Configure theTaskExecutor
to use to execute XHR receive requests.