org.objectweb.proactive
Class Service.FlushingServeOldestRequestProcessor

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

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

FlushingServeOldestRequestProcessor is a RequestProcessor that serves only the oldest 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.FlushingServeOldestRequestProcessor(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.FlushingServeOldestRequestProcessor

public Service.FlushingServeOldestRequestProcessor(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.