Sdílet prostřednictvím


ForkJoinWorkerThread Class

Definition

A thread managed by a ForkJoinPool, which executes ForkJoinTasks.

[Android.Runtime.Register("java/util/concurrent/ForkJoinWorkerThread", DoNotGenerateAcw=true)]
public class ForkJoinWorkerThread : Java.Lang.Thread
[<Android.Runtime.Register("java/util/concurrent/ForkJoinWorkerThread", DoNotGenerateAcw=true)>]
type ForkJoinWorkerThread = class
    inherit Thread
Inheritance
ForkJoinWorkerThread
Attributes

Remarks

A thread managed by a ForkJoinPool, which executes ForkJoinTasks. This class is subclassable solely for the sake of adding functionality -- there are no overridable methods dealing with scheduling or execution. However, you can override initialization and termination methods surrounding the main task processing loop. If you do create such a subclass, you will also need to supply a custom ForkJoinPool.ForkJoinWorkerThreadFactory to ForkJoinPool#ForkJoinPool(int, ForkJoinWorkerThreadFactory, UncaughtExceptionHandler, boolean, int, int, int, Predicate, long, TimeUnit) use it in a ForkJoinPool.

Added in 1.7.

Java documentation for java.util.concurrent.ForkJoinWorkerThread.

Portions of this page are modifications based on work created and shared by the Android Open Source Project and used according to terms described in the Creative Commons 2.5 Attribution License.

Constructors

ForkJoinWorkerThread(ForkJoinPool)

Creates a ForkJoinWorkerThread operating in the given pool.

ForkJoinWorkerThread(IntPtr, JniHandleOwnership)

A constructor used when creating managed representations of JNI objects; called by the runtime.

Fields

MaxPriority

The maximum priority that a thread can have.

(Inherited from Thread)
MinPriority

The minimum priority that a thread can have.

(Inherited from Thread)
NormPriority

The default priority that is assigned to a thread.

(Inherited from Thread)

Properties

Class

Returns the runtime class of this Object.

(Inherited from Object)
ContextClassLoader

Returns the context ClassLoader for this thread. -or- Sets the context ClassLoader for this Thread.

(Inherited from Thread)
Daemon

Tests if this thread is a daemon thread. -or- Marks this thread as either a #isDaemon daemon thread or a user thread.

(Inherited from Thread)
Handle

The handle to the underlying Android instance.

(Inherited from Object)
Id

Returns the identifier of this Thread.

(Inherited from Thread)
IsAlive

Tests if this thread is alive.

(Inherited from Thread)
IsInterrupted

Tests whether this thread has been interrupted.

(Inherited from Thread)
JniIdentityHashCode (Inherited from Object)
JniPeerMembers
Name

Returns this thread's name. -or- Changes the name of this thread to be equal to the argument name.

(Inherited from Thread)
PeerReference (Inherited from Object)
Pool

Returns the pool hosting this thread.

PoolIndex

Returns the unique index number of this thread in its pool.

Priority

Returns this thread's priority. -or- Changes the priority of this thread.

(Inherited from Thread)
ThreadGroup

Returns the thread group to which this thread belongs.

(Inherited from Thread)
ThresholdClass

This API supports the Mono for Android infrastructure and is not intended to be used directly from your code.

ThresholdType

This API supports the Mono for Android infrastructure and is not intended to be used directly from your code.

UncaughtExceptionHandler

Returns the handler invoked when this thread abruptly terminates due to an uncaught exception. -or- Set the handler invoked when this thread abruptly terminates due to an uncaught exception.

(Inherited from Thread)

Methods

CheckAccess()

Determines if the currently running thread has permission to modify this thread.

(Inherited from Thread)
Clone()

Creates and returns a copy of this object.

(Inherited from Object)
CountStackFrames()
Obsolete.

Counts the number of stack frames in this thread.

(Inherited from Thread)
Destroy()
Obsolete.

Throws UnsupportedOperationException.

(Inherited from Thread)
Dispose() (Inherited from Object)
Dispose(Boolean) (Inherited from Object)
Equals(Object)

Indicates whether some other object is "equal to" this one.

(Inherited from Object)
GetHashCode()

Returns a hash code value for the object.

(Inherited from Object)
GetStackTrace()

Returns an array of stack trace elements representing the stack dump of this thread.

(Inherited from Thread)
GetState()

Returns the state of this thread.

(Inherited from Thread)
Interrupt()

Interrupts this thread.

(Inherited from Thread)
JavaFinalize()

Called by the garbage collector on an object when garbage collection determines that there are no more references to the object.

(Inherited from Object)
Join()

Waits for this thread to die.

(Inherited from Thread)
Join(Int64, Int32)

Waits at most millis milliseconds plus nanos nanoseconds for this thread to die.

(Inherited from Thread)
Join(Int64)

Waits at most millis milliseconds for this thread to die.

(Inherited from Thread)
Notify()

Wakes up a single thread that is waiting on this object's monitor.

(Inherited from Object)
NotifyAll()

Wakes up all threads that are waiting on this object's monitor.

(Inherited from Object)
OnStart()

Initializes internal state after construction but before processing any tasks.

OnTermination(Throwable)

Performs cleanup associated with termination of this worker thread.

Resume()
Obsolete.

Throws UnsupportedOperationException.

(Inherited from Thread)
Run()

If this thread was constructed using a separate Runnable run object, then that Runnable object's run method is called; otherwise, this method does nothing and returns.

(Inherited from Thread)
SetHandle(IntPtr, JniHandleOwnership)

Sets the Handle property.

(Inherited from Object)
Start()

Causes this thread to begin execution; the Java Virtual Machine calls the run method of this thread.

(Inherited from Thread)
Stop()
Obsolete.

Throws UnsupportedOperationException.

(Inherited from Thread)
Stop(Throwable)
Obsolete.

Throws UnsupportedOperationException.

(Inherited from Thread)
Suspend()
Obsolete.

Throws UnsupportedOperationException.

(Inherited from Thread)
ToArray<T>() (Inherited from Object)
ToString()

Returns a string representation of the object.

(Inherited from Object)
UnregisterFromRuntime() (Inherited from Object)
Wait()

Causes the current thread to wait until it is awakened, typically by being <em>notified</em> or <em>interrupted</em>.

(Inherited from Object)
Wait(Int64, Int32)

Causes the current thread to wait until it is awakened, typically by being <em>notified</em> or <em>interrupted</em>, or until a certain amount of real time has elapsed.

(Inherited from Object)
Wait(Int64)

Causes the current thread to wait until it is awakened, typically by being <em>notified</em> or <em>interrupted</em>, or until a certain amount of real time has elapsed.

(Inherited from Object)

Explicit Interface Implementations

IJavaPeerable.Disposed() (Inherited from Object)
IJavaPeerable.DisposeUnlessReferenced() (Inherited from Object)
IJavaPeerable.Finalized() (Inherited from Object)
IJavaPeerable.JniManagedPeerState (Inherited from Object)
IJavaPeerable.SetJniIdentityHashCode(Int32) (Inherited from Object)
IJavaPeerable.SetJniManagedPeerState(JniManagedPeerStates) (Inherited from Object)
IJavaPeerable.SetPeerReference(JniObjectReference) (Inherited from Object)

Extension Methods

JavaCast<TResult>(IJavaObject)

Performs an Android runtime-checked type conversion.

JavaCast<TResult>(IJavaObject)
GetJniTypeName(IJavaPeerable)

Applies to