Added isConnected() method back to the client
This commit is contained in:
parent
fbb8bf9d6f
commit
617ab95ede
@ -479,25 +479,16 @@ class Client<C extends Connection> extends EndPointClient implements Connection
|
|||||||
public
|
public
|
||||||
void close() {
|
void close() {
|
||||||
closeConnection();
|
closeConnection();
|
||||||
|
}
|
||||||
|
|
||||||
// String threadName = Client.class.getSimpleName();
|
/**
|
||||||
// synchronized (bootstraps) {
|
* Checks to see if this client has connected yet or not.
|
||||||
// ArrayList<BootstrapWrapper> newList = new ArrayList<BootstrapWrapper>(bootstraps.size());
|
*
|
||||||
//
|
* @return true if we are connected, false otherwise.
|
||||||
// for (BootstrapWrapper bootstrap : bootstraps) {
|
*/
|
||||||
// EventLoopGroup group = bootstrap.bootstrap.group();
|
public
|
||||||
//
|
boolean isConnected() {
|
||||||
// removeFromShutdown(group);
|
return super.isConnected.get();
|
||||||
// group.shutdownGracefully();
|
|
||||||
//
|
|
||||||
// String name = threadName + "-" + bootstrap.type + "-BOSS";
|
|
||||||
//
|
|
||||||
// newList.add(bootstrap.clone(newEventLoop(1, name)));
|
|
||||||
// }
|
|
||||||
//
|
|
||||||
// bootstraps.clear();
|
|
||||||
// bootstraps.addAll(newList);
|
|
||||||
// }
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user