App Engine Python SDK  v1.6.9 rev.445
The Python runtime is available as an experimental Preview feature.
Public Member Functions | Public Attributes | List of all members
google.appengine.tools.adaptive_thread_pool.WorkerThread Class Reference
Inheritance diagram for google.appengine.tools.adaptive_thread_pool.WorkerThread:

Public Member Functions

def __init__
 
def run
 
def SetError
 
def WorkOnItems
 
def CheckError
 
def __str__
 

Public Attributes

 exit_flag
 

Detailed Description

A WorkerThread to execute WorkItems.

Attributes:
  exit_flag: A boolean indicating whether this thread should stop
    its work and exit.

Constructor & Destructor Documentation

def google.appengine.tools.adaptive_thread_pool.WorkerThread.__init__ (   self,
  thread_pool,
  thread_gate,
  name = None 
)
Initialize a WorkerThread instance.

Args:
  thread_pool: An AdaptiveThreadPool instance.
  thread_gate: A ThreadGate instance.
  name: A name for this WorkerThread.

Member Function Documentation

def google.appengine.tools.adaptive_thread_pool.WorkerThread.CheckError (   self)
If an error is present, then log it.
def google.appengine.tools.adaptive_thread_pool.WorkerThread.run (   self)
Perform the work of the thread.
def google.appengine.tools.adaptive_thread_pool.WorkerThread.SetError (   self)
Sets the error and traceback information for this thread.

This must be called from an exception handler.
def google.appengine.tools.adaptive_thread_pool.WorkerThread.WorkOnItems (   self)
Perform the work of a WorkerThread.

The documentation for this class was generated from the following file: