Updated signature of setConnectTimeout(int) to setConnectTimeout(long)
to comply with field type and getter type. Removed check that was throwing an exception if connect timeout was set after start.
This commit is contained in:
parent
0c3ff5be4a
commit
1ca0f004c3
|
@ -290,13 +290,8 @@ public class WebSocketClient extends ContainerLifeCycle
|
|||
this.bufferPool = bufferPool;
|
||||
}
|
||||
|
||||
public void setConnectTimeout(int connectTimeout)
|
||||
public void setConnectTimeout(long connectTimeout)
|
||||
{
|
||||
if (isStarted())
|
||||
{
|
||||
throw new IllegalStateException("Cannot change connect timeout, WebSocketClient is already started");
|
||||
}
|
||||
|
||||
if (connectTimeout < 0)
|
||||
{
|
||||
throw new IllegalStateException("Connect Timeout cannot be negative");
|
||||
|
@ -318,4 +313,4 @@ public class WebSocketClient extends ContainerLifeCycle
|
|||
{
|
||||
this.masker = masker;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue