org.objectweb.proactive
Class Service.FlushingServeYoungestRequestProcessor

java.lang.Object
  extended by org.objectweb.proactive.Service.FlushingServeYoungestRequestProcessor
All Implemented Interfaces:
RequestProcessor
Enclosing class:
Service

protected class Service.FlushingServeYoungestRequestProcessor
extends java.lang.Object
implements RequestProcessor

FlushingServeYoungestRequestProcessor is a RequestProcessor that serves only the youngest request accepted by the given RequestFilter and removes all other requests accepted by that same Filter

Since:
ProActive 0.9
Version:
1.0, 2001/10/23
Author:
ProActive Team
See Also:
RequestProcessor

Field Summary
 
Fields inherited from interface org.objectweb.proactive.core.body.request.RequestProcessor
KEEP, REMOVE, REMOVE_AND_SERVE
 
Constructor Summary
Service.FlushingServeYoungestRequestProcessor(RequestFilter selectorRequestFilter)
           
 
Method Summary
 int processRequest(Request request)
          Processes the request and returns true if the request can be discarded after processing.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Service.FlushingServeYoungestRequestProcessor

public Service.FlushingServeYoungestRequestProcessor(RequestFilter selectorRequestFilter)
Method Detail

processRequest

public int processRequest(Request request)
Processes the request and returns true if the request can be discarded after processing.

Specified by:
processRequest in interface RequestProcessor
Parameters:
request - the request to process
Returns:
true if the request can be discarded (removed from the container it is stored), false if it has to be kept.


Copyright 2001-2007 INRIA All Rights Reserved.