Uses of Interface
org.springframework.util.concurrent.ListenableFuture
Package
Description
This package defines Spring's core TaskExecutor abstraction,
and provides SyncTaskExecutor and SimpleAsyncTaskExecutor implementations.
Support classes for Spring's TaskExecutor abstraction.
Common infrastructure for invoking message handler methods.
Generic support for simple messaging protocols (like STOMP).
Contains abstractions and implementation classes for establishing TCP connections via
TcpOperations
,
handling messages via
TcpConnectionHandler
,
as well as sending messages via
TcpConnection
.Annotation support for asynchronous method execution.
Scheduling convenience classes for the
java.util.concurrent
and jakarta.enterprise.concurrent
packages, allowing to set up a
ThreadPoolExecutor or ScheduledThreadPoolExecutor as a bean in a Spring
context.Support classes for the open source scheduler
Quartz,
allowing to set up Quartz Schedulers, JobDetails and
Triggers as beans in a Spring context.
Useful generic
java.util.concurrent.Future
extensions.Client-side abstractions for WebSocket applications.
WebSocket integration for Spring's messaging module.
SockJS client implementation of
WebSocketClient
.-
Uses of ListenableFuture in org.springframework.core.task
Modifier and TypeMethodDescriptionAsyncListenableTaskExecutor.submitListenable
(Runnable task) Deprecated.<T> ListenableFuture<T>
AsyncListenableTaskExecutor.submitListenable
(Callable<T> task) Deprecated.in favor ofAsyncTaskExecutor.submitCompletable(Callable)
SimpleAsyncTaskExecutor.submitListenable
(Runnable task) <T> ListenableFuture<T>
SimpleAsyncTaskExecutor.submitListenable
(Callable<T> task) -
Uses of ListenableFuture in org.springframework.core.task.support
Modifier and TypeMethodDescriptionTaskExecutorAdapter.submitListenable
(Runnable task) <T> ListenableFuture<T>
TaskExecutorAdapter.submitListenable
(Callable<T> task) -
Uses of ListenableFuture in org.springframework.messaging.handler.invocation
Modifier and TypeMethodDescriptiondefault ListenableFuture<?>
AsyncHandlerMethodReturnValueHandler.toListenableFuture
(Object returnValue, MethodParameter returnType) Deprecated.as of 6.0, in favor ofAsyncHandlerMethodReturnValueHandler.toCompletableFuture(Object, MethodParameter)
ListenableFutureReturnValueHandler.toListenableFuture
(Object returnValue, MethodParameter returnType) Deprecated. -
Uses of ListenableFuture in org.springframework.messaging.simp.stomp
Modifier and TypeMethodDescriptionReactorNettyTcpStompClient.connect
(StompHeaders connectHeaders, StompSessionHandler handler) Deprecated.as of 6.0, in favor ofReactorNettyTcpStompClient.connectAsync(StompHeaders, StompSessionHandler)
ReactorNettyTcpStompClient.connect
(StompSessionHandler handler) Deprecated.as of 6.0, in favor ofReactorNettyTcpStompClient.connectAsync(StompSessionHandler)
default ListenableFuture<StompSession>
ConnectionHandlingStompSession.getSessionFuture()
Deprecated.as of 6.0, in favor ofConnectionHandlingStompSession.getSession()
-
Uses of ListenableFuture in org.springframework.messaging.tcp
Modifier and TypeMethodDescriptiondefault ListenableFuture<Void>
TcpOperations.connect
(TcpConnectionHandler<P> connectionHandler) Deprecated.as of 6.0, in favor ofTcpOperations.connectAsync(TcpConnectionHandler)
default ListenableFuture<Void>
TcpOperations.connect
(TcpConnectionHandler<P> connectionHandler, ReconnectStrategy reconnectStrategy) Deprecated.as of 6.0, in favor ofTcpOperations.connectAsync(TcpConnectionHandler, ReconnectStrategy)
default ListenableFuture<Void>
Deprecated.as of 6.0, in favor ofTcpConnection.sendAsync(Message)
default ListenableFuture<Void>
TcpOperations.shutdown()
Deprecated.as of 6.0, in favor ofTcpOperations.shutdownAsync()
-
Uses of ListenableFuture in org.springframework.scheduling.annotation
Modifier and TypeClassDescriptionclass
AsyncResult<V>
Deprecated.as of 6.0, in favor ofCompletableFuture
Modifier and TypeMethodDescriptionstatic <V> ListenableFuture<V>
AsyncResult.forExecutionException
(Throwable ex) Deprecated.Create a new async result which exposes the given exception as anExecutionException
fromFuture.get()
.static <V> ListenableFuture<V>
AsyncResult.forValue
(V value) Deprecated.Create a new async result which exposes the given value fromFuture.get()
. -
Uses of ListenableFuture in org.springframework.scheduling.concurrent
Modifier and TypeMethodDescriptionConcurrentTaskExecutor.submitListenable
(Runnable task) <T> ListenableFuture<T>
ConcurrentTaskExecutor.submitListenable
(Callable<T> task) ThreadPoolTaskExecutor.submitListenable
(Runnable task) <T> ListenableFuture<T>
ThreadPoolTaskExecutor.submitListenable
(Callable<T> task) ThreadPoolTaskScheduler.submitListenable
(Runnable task) <T> ListenableFuture<T>
ThreadPoolTaskScheduler.submitListenable
(Callable<T> task) -
Uses of ListenableFuture in org.springframework.scheduling.quartz
Modifier and TypeMethodDescriptionSimpleThreadPoolTaskExecutor.submitListenable
(Runnable task) <T> ListenableFuture<T>
SimpleThreadPoolTaskExecutor.submitListenable
(Callable<T> task) -
Uses of ListenableFuture in org.springframework.util.concurrent
Modifier and TypeClassDescriptionclass
Deprecated.as of 6.0, with no concrete replacementclass
Deprecated.as of 6.0, in favor ofCompletableFuture
class
Deprecated.as of 6.0, with no concrete replacementclass
Deprecated.as of 6.0, in favor ofMono.toFuture()
class
Deprecated.as of 6.0, in favor ofCompletableFuture
ModifierConstructorDescriptionprotected
ListenableFutureAdapter
(ListenableFuture<S> adaptee) Deprecated.Construct a newListenableFutureAdapter
with the given adaptee. -
Uses of ListenableFuture in org.springframework.web.socket.client
Modifier and TypeMethodDescriptiondefault ListenableFuture<WebSocketSession>
WebSocketClient.doHandshake
(WebSocketHandler webSocketHandler, String uriTemplate, Object... uriVariables) Deprecated.as of 6.0, in favor ofWebSocketClient.execute(WebSocketHandler, String, Object...)
default ListenableFuture<WebSocketSession>
WebSocketClient.doHandshake
(WebSocketHandler webSocketHandler, WebSocketHttpHeaders headers, URI uri) Deprecated.as of 6.0, in favor ofWebSocketClient.execute(WebSocketHandler, WebSocketHttpHeaders, URI)
protected ListenableFuture<WebSocketSession>
AbstractWebSocketClient.doHandshakeInternal
(WebSocketHandler webSocketHandler, HttpHeaders headers, URI uri, List<String> subProtocols, List<WebSocketExtension> extensions, Map<String, Object> attributes) Deprecated.as of 6.0, in favor ofAbstractWebSocketClient.executeInternal(WebSocketHandler, HttpHeaders, URI, List, List, Map)
-
Uses of ListenableFuture in org.springframework.web.socket.messaging
Modifier and TypeMethodDescriptionWebSocketStompClient.connect
(String url, StompSessionHandler handler, Object... uriVars) Deprecated.as of 6.0, in favor ofWebSocketStompClient.connectAsync(String, StompSessionHandler, Object...)
WebSocketStompClient.connect
(String url, WebSocketHttpHeaders handshakeHeaders, StompHeaders connectHeaders, StompSessionHandler handler, Object... uriVariables) Deprecated.WebSocketStompClient.connect
(String url, WebSocketHttpHeaders handshakeHeaders, StompSessionHandler handler, Object... uriVariables) Deprecated.WebSocketStompClient.connect
(URI url, WebSocketHttpHeaders handshakeHeaders, StompHeaders connectHeaders, StompSessionHandler sessionHandler) Deprecated. -
Uses of ListenableFuture in org.springframework.web.socket.sockjs.client
Modifier and TypeMethodDescriptiondefault ListenableFuture<WebSocketSession>
Transport.connect
(TransportRequest request, WebSocketHandler webSocketHandler) Deprecated.as of 6.0, in favor ofTransport.connectAsync(TransportRequest, WebSocketHandler)
AsyncTaskExecutor.submitCompletable(Runnable)