1 31 package org.objectweb.proactive.core.body.request; 32 33 import org.objectweb.proactive.Body; 34 import org.objectweb.proactive.core.event.RequestQueueEventListener; 35 36 public interface RequestQueue { 37 38 42 public java.util.Iterator iterator(); 43 44 public boolean isEmpty(); 45 46 public int size(); 47 48 public boolean hasRequest(String s); 49 50 public void clear(); 51 52 57 public Request getOldest(); 58 59 65 public Request getOldest(String methodName); 66 67 73 public Request getOldest(RequestFilter requestFilter); 74 75 80 public Request removeOldest(); 81 82 88 public Request removeOldest(String methodName); 89 90 96 public Request removeOldest(RequestFilter requestFilter); 97 98 103 public Request getYoungest(); 104 105 111 public Request getYoungest(String methodName); 112 113 119 public Request getYoungest(RequestFilter requestFilter); 120 121 126 public Request removeYoungest(); 127 128 134 public Request removeYoungest(String methodName); 135 136 142 public Request removeYoungest(RequestFilter requestFilter); 143 144 148 public void add(Request request); 149 150 155 public void addToFront(Request request); 156 157 164 public void processRequests(RequestProcessor processor, Body body); 165 166 public void addRequestQueueEventListener(RequestQueueEventListener listener); 167 168 public void removeRequestQueueEventListener(RequestQueueEventListener listener); 169 } | Popular Tags |