public class OutboundWebSocketReconnectionHandler extends Object
WebSocket by replaying an original HttpRequest. The newly obtained WebSocket will have the
same ID and WebSocketCallback as the original.| Constructor and Description |
|---|
OutboundWebSocketReconnectionHandler(org.mule.runtime.http.api.client.HttpClient httpClient,
org.mule.runtime.http.api.domain.message.request.HttpRequest request,
org.mule.runtime.http.api.client.HttpRequestOptions requestOptions,
String socketId,
org.mule.runtime.http.api.client.ws.WebSocketCallback callback)
Creates a new instance.
|
| Modifier and Type | Method and Description |
|---|---|
CompletableFuture<org.mule.runtime.http.api.ws.WebSocket> |
reconnect(OutboundWebSocket webSocket,
org.mule.runtime.core.api.retry.policy.RetryPolicyTemplate retryPolicyTemplate,
org.mule.runtime.api.scheduler.Scheduler scheduler) |
public OutboundWebSocketReconnectionHandler(org.mule.runtime.http.api.client.HttpClient httpClient,
org.mule.runtime.http.api.domain.message.request.HttpRequest request,
org.mule.runtime.http.api.client.HttpRequestOptions requestOptions,
String socketId,
org.mule.runtime.http.api.client.ws.WebSocketCallback callback)
httpClient - the client used to create the new WebSocketrequest - the original requestrequestOptions - the original request optionssocketId - the original socketIdcallback - the original WebSocketCallback}public CompletableFuture<org.mule.runtime.http.api.ws.WebSocket> reconnect(OutboundWebSocket webSocket, org.mule.runtime.core.api.retry.policy.RetryPolicyTemplate retryPolicyTemplate, org.mule.runtime.api.scheduler.Scheduler scheduler)
Copyright © 2003–2025 MuleSoft, Inc.. All rights reserved.