Skip to content

Commit

Permalink
[ISSUE #6547] Some RemotingChannel calls need to be forwarded to the …
Browse files Browse the repository at this point in the history
…original Channel (#6548)
  • Loading branch information
xdkxlk authored Apr 11, 2023
1 parent cb53fa5 commit 7dc9942
Showing 1 changed file with 18 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,10 @@
import com.alibaba.fastjson.TypeReference;
import com.google.common.base.MoreObjects;
import io.netty.channel.Channel;
import io.netty.channel.ChannelConfig;
import io.netty.channel.ChannelFuture;
import io.netty.channel.ChannelFutureListener;
import io.netty.channel.ChannelMetadata;
import java.time.Duration;
import java.util.Set;
import java.util.concurrent.CompletableFuture;
Expand Down Expand Up @@ -91,6 +94,21 @@ public boolean isWritable() {
return this.parent().isWritable();
}

@Override
public ChannelFuture close() {
return this.parent().close();
}

@Override
public ChannelConfig config() {
return this.parent().config();
}

@Override
public ChannelMetadata metadata() {
return this.parent().metadata();
}

@Override
protected CompletableFuture<Void> processOtherMessage(Object msg) {
this.parent().writeAndFlush(msg);
Expand Down

0 comments on commit 7dc9942

Please sign in to comment.