Package org.jppf.classloader
Class ClassLoaderRequestHandler
java.lang.Object
org.jppf.classloader.ClassLoaderRequestHandler
This class manages the batching of class loading requests at regular intervals.
- Author:
- Laurent Cohen
-
Constructor Summary
ConstructorsConstructorDescriptionClassLoaderRequestHandler(org.jppf.classloader.ResourceRequestRunner requestRunner) Initialize this request handler. -
Method Summary
Modifier and TypeMethodDescriptionFuture<org.jppf.classloader.JPPFResourceWrapper>addRequest(org.jppf.classloader.JPPFResourceWrapper resource) Add a resource request.org.jppf.classloader.ResourceRequestRunnerclose()Close this request handler and release its resources.org.jppf.classloader.ResourceRequestRunnerGet the bject which sends the class loading requets to the driver and receives the response.
-
Constructor Details
-
ClassLoaderRequestHandler
public ClassLoaderRequestHandler(org.jppf.classloader.ResourceRequestRunner requestRunner) Initialize this request handler.- Parameters:
requestRunner- the periodic task submitted to the scheduled executor.
-
-
Method Details
-
addRequest
public Future<org.jppf.classloader.JPPFResourceWrapper> addRequest(org.jppf.classloader.JPPFResourceWrapper resource) Add a resource request.- Parameters:
resource- the resource request to add.- Returns:
- a future for getting the respone at a later time.
-
close
public org.jppf.classloader.ResourceRequestRunner close()Close this request handler and release its resources.- Returns:
- the
ResourceRequestRunner.
-
getRequestRunner
public org.jppf.classloader.ResourceRequestRunner getRequestRunner()Get the bject which sends the class loading requets to the driver and receives the response.- Returns:
- a
ResourceRequestRunnerinstance.
-