Reputation: 31
I'm wondering, if after successful bootstrap.connect() a channel is an active channel.
ChannelFuture channelFuture = bootstrap.connect(HOST, PORT);
if (channelFuture.isSuccess()) {
//is channelFuture.channel() active now?
}
Upvotes: 1
Views: 266
Reputation: 23567
Yes it is... once the connect operation completed successfully (be aware this is an async operation) the Channel is active until its closed.
Upvotes: 1