Class NettyPythonEventLoop.NettySocketTransport
java.lang.Object
io.micronaut.context.python.netty.NettyPythonEventLoop.NettySocketTransport
- Enclosing class:
NettyPythonEventLoop
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 Summary
Modifier and TypeMethodDescriptionvoidabort()booleanbooleanvoidclose()@Nullable Objectget_extra_info(String name) @Nullable Objectget_extra_info(String name, @Nullable Object defaultValue) org.graalvm.polyglot.ValueObject[]int@Nullable ObjectgetExtraInfo(String name) @Nullable ObjectgetExtraInfo(String name, @Nullable Object defaultValue) org.graalvm.polyglot.ValueObject[]intbooleanbooleanvoidvoidvoidvoidvoidset_write_buffer_limits(@Nullable Integer high, @Nullable Integer low) voidsetProtocol(org.graalvm.polyglot.Value protocol) voidsetWriteBufferLimits(@Nullable Integer high, @Nullable Integer low) voidwrite(byte[] bytes) voidvoidwriteEof()voidwritelines(org.graalvm.polyglot.Value lines)
-
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
-
pauseReading
public void pauseReading() -
pause_reading
public void pause_reading() -
resumeReading
public void resumeReading() -
resume_reading
public void resume_reading() -
getExtraInfo
-
getExtraInfo
-
get_extra_info
-
get_extra_info
-
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()
-