SDK
SDK Java v3.x
2

This SDK is deprecated. We recommend to use the Kuzzle SDK-JVM.
A migration guide is available here

WebSocketOptions #

This class represents the options usable with the Kuzzle class.

It can be used with the following methods:

Constructor #

This class has a constructor and a constructor by copy.

Getters and setters #

port #

The port to use to connect.

public int getPort();
public WebSocketOptions setPort(int port)

ssl #

If we use SSL connection.

public boolean getSsl()
public WebSocketOptions setSsl(boolean ssl)

connectionTimeout #

The duration before the connection timeout.

public int getConnectionTimeout()
public WebSocketOptions setConnectionTimeout(int connectionTimeout)

autoReconnect #

If the websocket auto reconnects.

public boolean getAutoReconnect()
public WebSocketOptions setAutoReconnect(boolean autoReconnect)

reconnectionDelay #

Time between each reconnection attempt.

public long getReconnectionDelay();
public WebSocketOptions setReconnectionDelay(long reconnectionDelay);

reconnectionRetries #

Number of attempts to try and reconnect. -1 for infinite attempts until the connection is established again.

public long getReconnectionRetries();
public WebSocketOptions setReconnectionRetries(long reconnectionRetries);