DelegatingHandle Class — netty Architecture
Architecture documentation for the DelegatingHandle class in RecvByteBufAllocator.java from the netty codebase.
Entity Profile
Dependency Diagram
graph TD cb770eaa_099c_8f14_3310_fbe9af06ddf7["DelegatingHandle"] 1b6a4263_0eda_567c_63bc_9cb3e6a91bbc["RecvByteBufAllocator.java"] cb770eaa_099c_8f14_3310_fbe9af06ddf7 -->|defined in| 1b6a4263_0eda_567c_63bc_9cb3e6a91bbc 696fcb82_2fc6_71bd_532b_775f64b5ce14["DelegatingHandle()"] cb770eaa_099c_8f14_3310_fbe9af06ddf7 -->|method| 696fcb82_2fc6_71bd_532b_775f64b5ce14 3c939fe2_bc7f_4e77_d683_a366e15c3f18["Handle()"] cb770eaa_099c_8f14_3310_fbe9af06ddf7 -->|method| 3c939fe2_bc7f_4e77_d683_a366e15c3f18 9bc5d54d_40c6_d816_0176_63197dcaa5bf["ByteBuf()"] cb770eaa_099c_8f14_3310_fbe9af06ddf7 -->|method| 9bc5d54d_40c6_d816_0176_63197dcaa5bf 906d61ec_ae41_71c7_fe1b_3d2d6095b76a["guess()"] cb770eaa_099c_8f14_3310_fbe9af06ddf7 -->|method| 906d61ec_ae41_71c7_fe1b_3d2d6095b76a 4bd652e4_2921_8461_ebb5_c61638c6ded7["reset()"] cb770eaa_099c_8f14_3310_fbe9af06ddf7 -->|method| 4bd652e4_2921_8461_ebb5_c61638c6ded7 c1ca22e7_1a93_1feb_1738_9aa2af91445a["incMessagesRead()"] cb770eaa_099c_8f14_3310_fbe9af06ddf7 -->|method| c1ca22e7_1a93_1feb_1738_9aa2af91445a c3f4adb8_2a38_a052_6bb5_92765152738b["lastBytesRead()"] cb770eaa_099c_8f14_3310_fbe9af06ddf7 -->|method| c3f4adb8_2a38_a052_6bb5_92765152738b ca5ca8a8_c7d1_a7a4_cfda_e933abe50f0b["continueReading()"] cb770eaa_099c_8f14_3310_fbe9af06ddf7 -->|method| ca5ca8a8_c7d1_a7a4_cfda_e933abe50f0b c2a30a58_51bc_5cbc_0e3d_3a6b3b055778["attemptedBytesRead()"] cb770eaa_099c_8f14_3310_fbe9af06ddf7 -->|method| c2a30a58_51bc_5cbc_0e3d_3a6b3b055778 a119b461_fc5d_6a18_0fc9_061dc9cba2fc["readComplete()"] cb770eaa_099c_8f14_3310_fbe9af06ddf7 -->|method| a119b461_fc5d_6a18_0fc9_061dc9cba2fc
Relationship Graph
Source Code
transport/src/main/java/io/netty/channel/RecvByteBufAllocator.java lines 122–186
class DelegatingHandle implements Handle {
private final Handle delegate;
public DelegatingHandle(Handle delegate) {
this.delegate = checkNotNull(delegate, "delegate");
}
/**
* Get the {@link Handle} which all methods will be delegated to.
* @return the {@link Handle} which all methods will be delegated to.
*/
protected final Handle delegate() {
return delegate;
}
@Override
public ByteBuf allocate(ByteBufAllocator alloc) {
return delegate.allocate(alloc);
}
@Override
public int guess() {
return delegate.guess();
}
@Override
public void reset(ChannelConfig config) {
delegate.reset(config);
}
@Override
public void incMessagesRead(int numMessages) {
delegate.incMessagesRead(numMessages);
}
@Override
public void lastBytesRead(int bytes) {
delegate.lastBytesRead(bytes);
}
@Override
public int lastBytesRead() {
return delegate.lastBytesRead();
}
@Override
public boolean continueReading() {
return delegate.continueReading();
}
@Override
public int attemptedBytesRead() {
return delegate.attemptedBytesRead();
}
@Override
public void attemptedBytesRead(int bytes) {
delegate.attemptedBytesRead(bytes);
}
@Override
public void readComplete() {
delegate.readComplete();
}
}
Source
Frequently Asked Questions
What is the DelegatingHandle class?
DelegatingHandle is a class in the netty codebase, defined in transport/src/main/java/io/netty/channel/RecvByteBufAllocator.java.
Where is DelegatingHandle defined?
DelegatingHandle is defined in transport/src/main/java/io/netty/channel/RecvByteBufAllocator.java at line 122.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free