Class NettyPythonEventLoop.NettyTransport
java.lang.Object
io.micronaut.context.python.netty.NettyPythonEventLoop.NettyTransport
- Direct Known Subclasses:
NettyPythonEventLoop.NettyDatagramTransport, NettyPythonEventLoop.NettySocketTransport
- Enclosing class:
NettyPythonEventLoop
What the Netty-backed stream and datagram transports share: the channel, the protocol, the
provider that owns the channel, and the asyncio members that only depend on them.
-
Field Summary
Fields -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedNettyTransport(io.netty.channel.Channel channel, org.graalvm.polyglot.Value protocol, io.micronaut.context.python.netty.NettyPythonEventLoopSupport support) -
Method Summary
Modifier and TypeMethodDescriptionfinal voidabort()final voidclose()final @Nullable Objectget_extra_info(String name) final @Nullable Objectget_extra_info(String name, @Nullable Object defaultValue) final org.graalvm.polyglot.Valuefinal @Nullable ObjectgetExtraInfo(String name) abstract @Nullable ObjectgetExtraInfo(String name, @Nullable Object defaultValue) final org.graalvm.polyglot.Valuefinal booleanfinal booleanfinal voidset_protocol(org.graalvm.polyglot.Value protocol) final voidsetProtocol(org.graalvm.polyglot.Value protocol)
-
Field Details
-
channel
protected final io.netty.channel.Channel channel -
protocol
protected final org.graalvm.polyglot.Value protocol -
support
protected final io.micronaut.context.python.netty.NettyPythonEventLoopSupport support -
closing
protected volatile boolean closing
-
-
Constructor Details
-
NettyTransport
protected NettyTransport(io.netty.channel.Channel channel, org.graalvm.polyglot.Value protocol, io.micronaut.context.python.netty.NettyPythonEventLoopSupport support)
-
-
Method Details
-
getExtraInfo
-
getExtraInfo
-
get_extra_info
-
get_extra_info
-
isClosing
public final boolean isClosing() -
is_closing
public final boolean is_closing() -
close
public final void close() -
abort
public final void abort() -
setProtocol
public final void setProtocol(org.graalvm.polyglot.Value protocol) -
set_protocol
public final void set_protocol(org.graalvm.polyglot.Value protocol) -
getProtocol
public final org.graalvm.polyglot.Value getProtocol() -
get_protocol
public final org.graalvm.polyglot.Value get_protocol()
-