code: private void channelActiveSideEffects(final ChannelHandlerContext ctx) {
          long interval = env().keepAliveInterval();
          if (env().continuousKeepAliveEnabled()) {
              continuousKeepAliveFuture = ctx.executor().scheduleAtFixedRate(new Runnable() {
                  @Override
                  public void run() {
                      if (shouldSendKeepAlive()) {
                          createAndWriteKeepAlive(ctx);
                      }
                  }
              }, interval, interval, TimeUnit.MILLISECONDS);
          }
      }
docs: Helper method to perform certain side effects when the channel is connected.