コード例 #1
0
 @Override
 public void fireInboundBufferUpdated() {
   if (!firedChannelActive) {
     fireInboundBufferUpdatedOnActivation = true;
     return;
   }
   head.fireInboundBufferUpdated();
 }
コード例 #2
0
  @Override
  public void fireChannelActive() {
    firedChannelActive = true;
    head.fireChannelActive();

    if (channel.config().isAutoRead()) {
      channel.read();
    }

    if (fireInboundBufferUpdatedOnActivation) {
      fireInboundBufferUpdatedOnActivation = false;
      head.fireInboundBufferUpdated();
    }
  }