Home / Function/ Object() — netty Function Reference

Object() — netty Function Reference

Architecture documentation for the Object() function in AbstractEpollStreamChannel.java from the netty codebase.

Entity Profile

Dependency Diagram

graph TD
  962269cc_3d12_e21b_837e_ec7b7fe3bc31["Object()"]
  6ec314cd_b42f_72bd_344b_f54212398142["AbstractEpollStreamChannel"]
  962269cc_3d12_e21b_837e_ec7b7fe3bc31 -->|defined in| 6ec314cd_b42f_72bd_344b_f54212398142
  style 962269cc_3d12_e21b_837e_ec7b7fe3bc31 fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

transport-classes-epoll/src/main/java/io/netty/channel/epoll/AbstractEpollStreamChannel.java lines 524–537

    @Override
    protected Object filterOutboundMessage(Object msg) {
        if (msg instanceof ByteBuf) {
            ByteBuf buf = (ByteBuf) msg;
            return UnixChannelUtil.isBufferCopyNeededForWrite(buf)? newDirectBuffer(buf): buf;
        }

        if (msg instanceof FileRegion || msg instanceof SpliceOutTask) {
            return msg;
        }

        throw new UnsupportedOperationException(
                "unsupported message type: " + StringUtil.simpleClassName(msg) + EXPECTED_TYPES);
    }

Domain

Subdomains

Frequently Asked Questions

What does Object() do?
Object() is a function in the netty codebase, defined in transport-classes-epoll/src/main/java/io/netty/channel/epoll/AbstractEpollStreamChannel.java.
Where is Object() defined?
Object() is defined in transport-classes-epoll/src/main/java/io/netty/channel/epoll/AbstractEpollStreamChannel.java at line 524.

Analyze Your Own Codebase

Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.

Try Supermodel Free