public class NativeThread extends java.lang.Object implements ThreadLike
Modifier and Type | Field and Description |
---|---|
RubyThread |
rubyThread |
Constructor and Description |
---|
NativeThread(RubyThread rubyThread,
IRubyObject[] args,
Block block)
Deprecated.
|
NativeThread(RubyThread rubyThread,
java.lang.Thread nativeThread) |
Modifier and Type | Method and Description |
---|---|
int |
getPriority() |
java.lang.Thread |
getThread() |
void |
interrupt() |
boolean |
isAlive() |
boolean |
isCurrent() |
boolean |
isInterrupted() |
void |
join() |
void |
join(long timeoutMillis) |
java.lang.Thread |
nativeThread() |
void |
setPriority(int priority) |
void |
start() |
java.lang.String |
toString() |
public final RubyThread rubyThread
@Deprecated public NativeThread(RubyThread rubyThread, IRubyObject[] args, Block block)
public NativeThread(RubyThread rubyThread, java.lang.Thread nativeThread)
public void start()
start
in interface ThreadLike
public void interrupt()
interrupt
in interface ThreadLike
public boolean isAlive()
isAlive
in interface ThreadLike
public void join() throws java.lang.InterruptedException
join
in interface ThreadLike
java.lang.InterruptedException
public void join(long timeoutMillis) throws java.lang.InterruptedException
join
in interface ThreadLike
java.lang.InterruptedException
public int getPriority()
getPriority
in interface ThreadLike
public void setPriority(int priority)
setPriority
in interface ThreadLike
public boolean isCurrent()
isCurrent
in interface ThreadLike
public boolean isInterrupted()
isInterrupted
in interface ThreadLike
public final java.lang.Thread getThread()
public java.lang.String toString()
toString
in class java.lang.Object
public java.lang.Thread nativeThread()
nativeThread
in interface ThreadLike
Copyright © 2001-2018 JRuby. All Rights Reserved.