Laucer
Laucer

Reputation: 31

Netty. Is channel after successful bootstrap.connect an active channel?

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

Answers (1)

Norman Maurer
Norman Maurer

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

Related Questions