Clean up class + param order consistency
This commit is contained in:
parent
b966545a95
commit
1ccba6e172
|
@ -84,17 +84,17 @@ public class WebSocketClient extends ContainerLifeCycle
|
|||
|
||||
public WebSocketClient(Executor executor)
|
||||
{
|
||||
this(executor,null);
|
||||
this(null,executor);
|
||||
}
|
||||
|
||||
|
||||
public WebSocketClient(SslContextFactory sslContextFactory)
|
||||
{
|
||||
this(null,sslContextFactory);
|
||||
this(sslContextFactory,null);
|
||||
}
|
||||
|
||||
public WebSocketClient(Executor executor, SslContextFactory sslContextFactory)
|
||||
|
||||
public WebSocketClient(SslContextFactory sslContextFactory, Executor executor)
|
||||
{
|
||||
this.executor=executor;
|
||||
this.executor = executor;
|
||||
this.sslContextFactory = sslContextFactory;
|
||||
this.policy = WebSocketPolicy.newClientPolicy();
|
||||
this.bufferPool = new MappedByteBufferPool();
|
||||
|
@ -104,7 +104,6 @@ public class WebSocketClient extends ContainerLifeCycle
|
|||
this.sessionFactory = new WebSocketSessionFactory();
|
||||
}
|
||||
|
||||
|
||||
public Future<Session> connect(Object websocket, URI toUri) throws IOException
|
||||
{
|
||||
ClientUpgradeRequest request = new ClientUpgradeRequest(toUri);
|
||||
|
@ -208,8 +207,10 @@ public class WebSocketClient extends ContainerLifeCycle
|
|||
addBean(executor,true);
|
||||
}
|
||||
else
|
||||
{
|
||||
addBean(executor,false);
|
||||
|
||||
}
|
||||
|
||||
if (connectionManager != null)
|
||||
{
|
||||
return;
|
||||
|
|
Loading…
Reference in New Issue