Package com.google.apphosting.runtime
Class RequestRunner.EagerRunner
java.lang.Object
com.google.apphosting.runtime.RequestRunner.EagerRunner
- All Implemented Interfaces:
Runnable
- Enclosing class:
RequestRunner
A runnable which lets us start running before we even know what to run. The run method first
waits to be given a Runnable (from another thread) via the supplyRunnable method, and then we
run that.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidrun()voidsupplyRunnable(Runnable runnable) Pass the given runnable to whatever thread's running our run method.
-
Constructor Details
-
EagerRunner
public EagerRunner()
-
-
Method Details
-
supplyRunnable
Pass the given runnable to whatever thread's running our run method. This will block until run() is called if it hasn't been already.- Throws:
InterruptedExceptionTimeoutException
-
run
public void run()
-