public class

RequestProcessor

extends Object
implements Runnable
java.lang.Object
   ↳ sun.misc.RequestProcessor

Class Overview

The request processor allows functors (Request instances) to be created in arbitrary threads, and to be posted for execution in a non-restricted thread.

Summary

Public Constructors
RequestProcessor()
Public Methods
static void postRequest(Request req)
Queues a Request instance for execution by the request procesor thread.
void run()
Process requests as they are queued.
synchronized static void startProcessing()
This method initiates the request processor thread.
[Expand]
Inherited Methods
From class java.lang.Object
From interface java.lang.Runnable

Public Constructors

public RequestProcessor ()

Public Methods

public static void postRequest (Request req)

Queues a Request instance for execution by the request procesor thread.

public void run ()

Process requests as they are queued.

public static synchronized void startProcessing ()

This method initiates the request processor thread. It is safe to call it after the thread has been started. It provides a way for clients to deliberately control the context in which the request processor thread is created