Package co.arago.hiro.client.websocket
Class ActionWebSocket.Conf<T extends ActionWebSocket.Conf<T>>
- java.lang.Object
-
- co.arago.hiro.client.websocket.AuthenticatedWebSocketHandler.Conf<T>
-
- co.arago.hiro.client.websocket.ActionWebSocket.Conf<T>
-
- Direct Known Subclasses:
ActionWebSocket.Builder
- Enclosing class:
- ActionWebSocket
public abstract static class ActionWebSocket.Conf<T extends ActionWebSocket.Conf<T>> extends AuthenticatedWebSocketHandler.Conf<T>
-
-
Constructor Summary
Constructors Constructor Description Conf()
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description abstract ActionWebSocketbuild()ActionWebSocketListenergetActionWebSocketListener()intgetResultRetries()TsetActionWebSocketListener(ActionWebSocketListener actionWebSocketListener)Set actionWebSocketListener.TsetResultRetries(int resultRetries)Set the retries for sending a actionResponse message.-
Methods inherited from class co.arago.hiro.client.websocket.AuthenticatedWebSocketHandler.Conf
getApiName, getEndpoint, getMaxRetries, getName, getProtocol, getTokenApiHandler, getWebSocketMessageTimeout, isReconnectOnFailedSend, self, setApiName, setEndpointAndProtocol, setFragment, setHeaderParam, setHeaders, setHeaders, setMaxRetries, setName, setQuery, setQuery, setQueryParam, setReconnectOnFailedSend, setTokenApiHandler, setWebSocketMessageTimeout
-
-
-
-
Method Detail
-
setResultRetries
public T setResultRetries(int resultRetries)
Set the retries for sending a actionResponse message.- Parameters:
resultRetries- Number of retries. Default is 4.- Returns:
AuthenticatedWebSocketHandler.Conf.self()
-
getResultRetries
public int getResultRetries()
-
getActionWebSocketListener
public ActionWebSocketListener getActionWebSocketListener()
-
setActionWebSocketListener
public T setActionWebSocketListener(ActionWebSocketListener actionWebSocketListener)
Set actionWebSocketListener. This will receive incoming data.- Parameters:
actionWebSocketListener- Reference to the listener to use.- Returns:
AuthenticatedWebSocketHandler.Conf.self()
-
build
public abstract ActionWebSocket build()
- Specified by:
buildin classAuthenticatedWebSocketHandler.Conf<T extends ActionWebSocket.Conf<T>>
-
-