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

public Class AdoptedNativeThread

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

A ThreadLike that weakly references its native thread, for adopted JVM threads we don't want to root.

Field Summary

Modifier and TypeField and Description
private final Reference<Thread>
public final RubyThread

Constructor Summary

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

Method Summary

Modifier and TypeMethod and Description
public int
public String
public String
public StackTraceElement[]
pack-priv final Thread
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.

Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAllwaitwaitwait

Field Detail

nativeThreadback to summary
private final Reference<Thread> nativeThread
rubyThreadback to summary
public final RubyThread rubyThread

Constructor Detail

AdoptedNativeThreadback to summary
public AdoptedNativeThread(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
getThreadback to summary
pack-priv final Thread getThread()
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