Class NettyPythonEventLoop.NettySocketTransport

java.lang.Object
io.micronaut.context.python.netty.NettyPythonEventLoop.NettySocketTransport
Enclosing class:
NettyPythonEventLoop

public static final class NettyPythonEventLoop.NettySocketTransport extends Object
Netty-backed stream transport exposed to Python as a host object.

The snake_case methods are intentionally duplicated alongside Java-style methods. GraalPy member lookup is name based, and asyncio's transports call names such as get_extra_info, pause_reading, and is_closing. The Checkstyle suppression below protects that Python-facing contract.

  • Method Details

    • write

      public void write(byte[] bytes)
    • writelines

      public void writelines(org.graalvm.polyglot.Value lines)
    • canWriteEof

      public boolean canWriteEof()
    • can_write_eof

      public boolean can_write_eof()
    • writeEof

      public void writeEof()
    • write_eof

      public void write_eof()
    • getWriteBufferSize

      public int getWriteBufferSize()
    • get_write_buffer_size

      public int get_write_buffer_size()
    • getWriteBufferLimits

      public Object[] getWriteBufferLimits()
    • get_write_buffer_limits

      public Object[] get_write_buffer_limits()
    • setWriteBufferLimits

      public void setWriteBufferLimits(@Nullable Integer high, @Nullable Integer low)
    • set_write_buffer_limits

      public void set_write_buffer_limits(@Nullable Integer high, @Nullable Integer low)
    • pauseReading

      public void pauseReading()
    • pause_reading

      public void pause_reading()
    • resumeReading

      public void resumeReading()
    • resume_reading

      public void resume_reading()
    • getExtraInfo

      public @Nullable Object getExtraInfo(String name)
    • getExtraInfo

      public @Nullable Object getExtraInfo(String name, @Nullable Object defaultValue)
    • get_extra_info

      public @Nullable Object get_extra_info(String name)
    • get_extra_info

      public @Nullable Object get_extra_info(String name, @Nullable Object defaultValue)
    • isClosing

      public boolean isClosing()
    • is_closing

      public boolean is_closing()
    • close

      public void close()
    • abort

      public void abort()
    • setProtocol

      public void setProtocol(org.graalvm.polyglot.Value protocol)
    • getProtocol

      public org.graalvm.polyglot.Value getProtocol()
    • get_protocol

      public org.graalvm.polyglot.Value get_protocol()