Package org.jruby
Interface RubyThread.ReadWrite<Data>
- All Superinterfaces:
RubyThread.Unblocker<Data>
- Enclosing class:
RubyThread
-
Method Summary
Modifier and TypeMethodDescriptiondefault int
run
(ThreadContext context, Data data, byte[] bytes, int start, int length) Deprecated.Prefer version that receives ByteBuffer rather than recreating every time.int
run
(ThreadContext context, Data data, ByteBuffer bytes, int start, int length) void
wakeup
(RubyThread thread, Data data)
-
Method Details
-
run
@Deprecated(since="9.4-") default int run(ThreadContext context, Data data, byte[] bytes, int start, int length) throws InterruptedException Deprecated.Prefer version that receives ByteBuffer rather than recreating every time.- Throws:
InterruptedException
-
run
int run(ThreadContext context, Data data, ByteBuffer bytes, int start, int length) throws InterruptedException - Throws:
InterruptedException
-
wakeup
- Specified by:
wakeup
in interfaceRubyThread.Unblocker<Data>
-