Top Description Fields Constructors Methods
org.jruby.internal.runtime

public Class RubyNativeThread

extends Object
implements ThreadLike
Class Inheritance
All Implemented Interfaces
org.jruby.internal.runtime.ThreadLike
Imports
java.lang.ref.Reference, .WeakReference, org.jruby.RubyString, .RubyThread, org.jruby.runtime.builtin.IRubyObject

A ThreadLike wrapped around a native Thread, for Ruby threads we start and control.

Field Summary

Modifier and TypeField and Description
private static final String
public String
public final RubyThread
private final Thread

Constructor Summary

AccessConstructor and Description
public
RubyNativeThread(RubyThread rubyThread, Thread nativeThread)

Method Summary

Modifier and TypeMethod and Description
public int
public String
public String
public StackTraceElement[]
public void
public boolean
public boolean
public boolean
public void
public void
join(long timeoutMillis)

Implements org.jruby.internal.runtime.ThreadLike.join.

public Thread
public void
public void
public String
toString()

Overrides java.lang.Object.toString.

Returns a string representation of the object.

pack-priv void
Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAllwaitwaitwait

Field Detail

RUBY_THREAD_PREFIXback to summary
private static final String RUBY_THREAD_PREFIX
rubyNameback to summary
public String rubyName
rubyThreadback to summary
public final RubyThread rubyThread
threadback to summary
private final Thread thread

Constructor Detail

RubyNativeThreadback to summary
public RubyNativeThread(RubyThread rubyThread, Thread nativeThread)

Method Detail

getPriorityback to summary
public int getPriority()

Implements org.jruby.internal.runtime.ThreadLike.getPriority.

getReportNameback to summary
public String getReportName()

Implements org.jruby.internal.runtime.ThreadLike.getReportName.

Annotations
@Override
getRubyNameback to summary
public String getRubyName()

Implements org.jruby.internal.runtime.ThreadLike.getRubyName.

Deprecated

Annotations
@Override
@Deprecated
getStackTraceback to summary
public StackTraceElement[] getStackTrace()

Implements org.jruby.internal.runtime.ThreadLike.getStackTrace.

Annotations
@Override
interruptback to summary
public void interrupt()

Implements org.jruby.internal.runtime.ThreadLike.interrupt.

isAliveback to summary
public boolean isAlive()

Implements org.jruby.internal.runtime.ThreadLike.isAlive.

isCurrentback to summary
public boolean isCurrent()

Implements org.jruby.internal.runtime.ThreadLike.isCurrent.

isInterruptedback to summary
public boolean isInterrupted()

Implements org.jruby.internal.runtime.ThreadLike.isInterrupted.

joinback to summary
public void join() throws InterruptedException

Implements org.jruby.internal.runtime.ThreadLike.join.

joinback to summary
public void join(long timeoutMillis) throws InterruptedException

Implements org.jruby.internal.runtime.ThreadLike.join.

nativeThreadback to summary
public Thread nativeThread()

Implements org.jruby.internal.runtime.ThreadLike.nativeThread.

setPriorityback to summary
public void setPriority(int priority)

Implements org.jruby.internal.runtime.ThreadLike.setPriority.

setRubyNameback to summary
public void setRubyName(String id)

Implements org.jruby.internal.runtime.ThreadLike.setRubyName.

Annotations
@Override
toStringback to summary
public String toString()

Overrides java.lang.Object.toString.

Doc from java.lang.Object.toString.

Returns a string representation of the object. Satisfying this method's contract implies a non-null result must be returned.

Returns:String

a string representation of the object

updateNameback to summary
pack-priv void updateName()