接口的使用
org.springframework.scheduling.TaskScheduler
使用TaskScheduler的程序包 程序包 说明 org.springframework.messaging.simp.broker Provides a "simple" message broker implementation along with an abstract base class and other supporting types such as a registry for subscriptions.org.springframework.messaging.simp.config Configuration support for WebSocket messaging using higher level messaging protocols.org.springframework.messaging.simp.stomp Generic support for simple messaging protocols (like STOMP).org.springframework.messaging.simp.user Support for handling messages to "user" destinations (i.e. destinations that are unique to a user's sessions), primarily translating the destinations and then forwarding the updated message to the broker.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.concurrentandjavax.enterprise.concurrentpackages, 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.web.socket.config Configuration support for WebSocket request handling.org.springframework.web.socket.config.annotation Support for annotation-based WebSocket setup in configuration classes.org.springframework.web.socket.messaging WebSocket integration for Spring's messaging module.org.springframework.web.socket.sockjs.client SockJS client implementation ofWebSocketClient.org.springframework.web.socket.sockjs.support Support classes for SockJS including anAbstractSockJsServiceimplementation.org.springframework.web.socket.sockjs.transport Server-side support for SockJS transports includingTransportHandlerimplementations for processing incoming requests, theirsessioncounterparts for sending messages over the various transports, andDefaultSockJsService.org.springframework.web.socket.sockjs.transport.handler TransportHandlerimplementation classes as well as a concreteSockJsService.org.springframework.messaging.simp.broker中TaskScheduler的使用
返回TaskScheduler的org.springframework.messaging.simp.broker中的方法 修饰符和类型 方法 说明 TaskSchedulerSimpleBrokerMessageHandler. getTaskScheduler()Return the configured TaskScheduler.参数类型为TaskScheduler的org.springframework.messaging.simp.broker中的方法 修饰符和类型 方法 说明 voidSimpleBrokerMessageHandler. setTaskScheduler(TaskScheduler taskScheduler)Configure theTaskSchedulerto use for providing heartbeat support.org.springframework.messaging.simp.config中TaskScheduler的使用
返回TaskScheduler的org.springframework.messaging.simp.config中的方法 修饰符和类型 方法 说明 TaskSchedulerAbstractMessageBrokerConfiguration. messageBrokerTaskScheduler()参数类型为TaskScheduler的org.springframework.messaging.simp.config中的方法 修饰符和类型 方法 说明 SimpleBrokerRegistrationSimpleBrokerRegistration. setTaskScheduler(TaskScheduler taskScheduler)Configure theTaskSchedulerto use for providing heartbeat support.org.springframework.messaging.simp.stomp中TaskScheduler的使用
返回TaskScheduler的org.springframework.messaging.simp.stomp中的方法 修饰符和类型 方法 说明 TaskSchedulerDefaultStompSession. getTaskScheduler()Return the configured TaskScheduler to use for receipt tracking.TaskSchedulerStompClientSupport. getTaskScheduler()The configured TaskScheduler.参数类型为TaskScheduler的org.springframework.messaging.simp.stomp中的方法 修饰符和类型 方法 说明 voidDefaultStompSession. setTaskScheduler(TaskScheduler taskScheduler)Configure the TaskScheduler to use for receipt tracking.voidStompClientSupport. setTaskScheduler(TaskScheduler taskScheduler)Configure a scheduler to use for heartbeats and for receipt tracking.org.springframework.messaging.simp.user中TaskScheduler的使用
参数类型为TaskScheduler的org.springframework.messaging.simp.user中的构造器 构造器 说明 UserRegistryMessageHandler(MultiServerUserRegistry userRegistry, SimpMessagingTemplate brokerTemplate, String broadcastDestination, TaskScheduler scheduler)Constructor.org.springframework.scheduling.commonj中TaskScheduler的使用
实现TaskScheduler的org.springframework.scheduling.commonj中的类 修饰符和类型 类 说明 classTimerManagerTaskScheduler已过时。as of 5.1, in favor of EE 7'sDefaultManagedTaskSchedulerorg.springframework.scheduling.concurrent中TaskScheduler的使用
实现TaskScheduler的org.springframework.scheduling.concurrent中的类 修饰符和类型 类 说明 classConcurrentTaskSchedulerAdapter that takes ajava.util.concurrent.ScheduledExecutorServiceand exposes a SpringTaskSchedulerfor it.classDefaultManagedTaskSchedulerJNDI-based variant ofConcurrentTaskScheduler, performing a default lookup for JSR-236's "java:comp/DefaultManagedScheduledExecutorService" in a Java EE 7 environment.classThreadPoolTaskSchedulerImplementation of Spring'sTaskSchedulerinterface, wrapping a nativeScheduledThreadPoolExecutor.org.springframework.scheduling.config中TaskScheduler的使用
返回TaskScheduler的org.springframework.scheduling.config中的方法 修饰符和类型 方法 说明 TaskSchedulerScheduledTaskRegistrar. getScheduler()Return theTaskSchedulerinstance for this registrar (may benull).参数类型为TaskScheduler的org.springframework.scheduling.config中的方法 修饰符和类型 方法 说明 voidScheduledTaskRegistrar. setTaskScheduler(TaskScheduler taskScheduler)Set theTaskSchedulerto register scheduled tasks with.org.springframework.web.socket.config中TaskScheduler的使用
参数类型为TaskScheduler的org.springframework.web.socket.config中的方法 修饰符和类型 方法 说明 voidWebSocketMessageBrokerStats. setSockJsTaskScheduler(TaskScheduler sockJsTaskScheduler)org.springframework.web.socket.config.annotation中TaskScheduler的使用
返回TaskScheduler的org.springframework.web.socket.config.annotation中的方法 修饰符和类型 方法 说明 TaskSchedulerWebSocketConfigurationSupport. defaultSockJsTaskScheduler()The default TaskScheduler to use if none is registered explicitly viaSockJsServiceRegistration.setTaskScheduler(org.springframework.scheduling.TaskScheduler):protected TaskSchedulerSockJsServiceRegistration. getTaskScheduler()Return the TaskScheduler, if configured.参数类型为TaskScheduler的org.springframework.web.socket.config.annotation中的方法 修饰符和类型 方法 说明 protected voidServletWebSocketHandlerRegistry. setTaskScheduler(TaskScheduler scheduler)Provide the TaskScheduler to use for SockJS endpoints for which a task scheduler has not been explicitly registered.SockJsServiceRegistrationSockJsServiceRegistration. setTaskScheduler(TaskScheduler scheduler)A scheduler instance to use for scheduling SockJS heart-beats.参数类型为TaskScheduler的org.springframework.web.socket.config.annotation中的构造器 构造器 说明 WebMvcStompEndpointRegistry(WebSocketHandler webSocketHandler, WebSocketTransportRegistration transportRegistration, TaskScheduler defaultSockJsTaskScheduler)WebMvcStompWebSocketEndpointRegistration(String[] paths, WebSocketHandler webSocketHandler, TaskScheduler sockJsTaskScheduler)org.springframework.web.socket.messaging中TaskScheduler的使用
参数类型为TaskScheduler的org.springframework.web.socket.messaging中的方法 修饰符和类型 方法 说明 voidWebSocketStompClient. setTaskScheduler(TaskScheduler taskScheduler)Configure a scheduler to use for heartbeats and for receipt tracking.org.springframework.web.socket.sockjs.client中TaskScheduler的使用
参数类型为TaskScheduler的org.springframework.web.socket.sockjs.client中的方法 修饰符和类型 方法 说明 voidSockJsClient. setConnectTimeoutScheduler(TaskScheduler connectTimeoutScheduler)Configure aTaskSchedulerfor scheduling a connect timeout task where the timeout value is calculated based on the duration of the initial SockJS "Info" request.org.springframework.web.socket.sockjs.support中TaskScheduler的使用
返回TaskScheduler的org.springframework.web.socket.sockjs.support中的方法 修饰符和类型 方法 说明 TaskSchedulerAbstractSockJsService. getTaskScheduler()A scheduler instance to use for scheduling heart-beat messages.参数类型为TaskScheduler的org.springframework.web.socket.sockjs.support中的构造器 构造器 说明 AbstractSockJsService(TaskScheduler scheduler)org.springframework.web.socket.sockjs.transport中TaskScheduler的使用
返回TaskScheduler的org.springframework.web.socket.sockjs.transport中的方法 修饰符和类型 方法 说明 TaskSchedulerSockJsServiceConfig. getTaskScheduler()A scheduler instance to use for scheduling heart-beat messages.参数类型为TaskScheduler的org.springframework.web.socket.sockjs.transport中的构造器 构造器 说明 TransportHandlingSockJsService(TaskScheduler scheduler, Collection<TransportHandler> handlers)Create a TransportHandlingSockJsService with givenhandlertypes.TransportHandlingSockJsService(TaskScheduler scheduler, TransportHandler... handlers)Create a TransportHandlingSockJsService with givenhandlertypes.org.springframework.web.socket.sockjs.transport.handler中TaskScheduler的使用
参数类型为TaskScheduler的org.springframework.web.socket.sockjs.transport.handler中的构造器 构造器 说明 DefaultSockJsService(TaskScheduler scheduler)Create a DefaultSockJsService with defaulthandlertypes.DefaultSockJsService(TaskScheduler scheduler, Collection<TransportHandler> handlerOverrides)Create a DefaultSockJsService with overriddenhandlertypes replacing the corresponding default handler implementation.DefaultSockJsService(TaskScheduler scheduler, TransportHandler... handlerOverrides)Create a DefaultSockJsService with overriddenhandlertypes replacing the corresponding default handler implementation.