Class NettyPythonEventLoop.NettySocketTransport
java.lang.Object
io.micronaut.context.python.netty.NettyPythonEventLoop.NettyTransport
io.micronaut.context.python.netty.NettyPythonEventLoop.NettySocketTransport
- Enclosing class:
NettyPythonEventLoop
public static final class NettyPythonEventLoop.NettySocketTransport
extends NettyPythonEventLoop.NettyTransport
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.
-
Field Summary
Fields inherited from class NettyPythonEventLoop.NettyTransport
channel, closing, protocol, support -
Method Summary
Modifier and TypeMethodDescriptionbooleanbooleanObject[]int@Nullable ObjectgetExtraInfo(String name, @Nullable Object defaultValue) Object[]intbooleanbooleanvoidvoidvoidvoidvoidset_write_buffer_limits(@Nullable Integer high, @Nullable Integer low) voidsetWriteBufferLimits(@Nullable Integer high, @Nullable Integer low) voidwrite(byte[] bytes) voidvoidwriteEof()voidwritelines(org.graalvm.polyglot.Value lines) Methods inherited from class NettyPythonEventLoop.NettyTransport
abort, close, get_extra_info, get_extra_info, get_protocol, getExtraInfo, getProtocol, is_closing, isClosing, set_protocol, setProtocol
-
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
-
get_write_buffer_limits
-
setWriteBufferLimits
-
set_write_buffer_limits
-
isReading
public boolean isReading() -
is_reading
public boolean is_reading() -
pauseReading
public void pauseReading() -
pause_reading
public void pause_reading() -
resumeReading
public void resumeReading() -
resume_reading
public void resume_reading() -
getExtraInfo
- Specified by:
getExtraInfoin classNettyPythonEventLoop.NettyTransport
-