|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface ISSRequestManagement
This interface provides operations related to request management between the ISS and the Worker. Through this interface a Worker can fetch request from the ISS as well as return the results and notify the ISS that it has finished it's work.
Method Summary | |
---|---|
boolean |
areTooManyWorkers()
Tests if the current number of workers is above the current limit |
ServiceRequest |
getWaitingRequest()
Gets a request that is waiting for service. |
void |
notifyWorkerFinished()
Callback method to notify ISS of Worker's execution end. |
void |
returnRequest(ServiceRequest returned)
Callback method for the Workers to call when they finish. |
Method Detail |
---|
ServiceRequest getWaitingRequest()
void returnRequest(ServiceRequest returned)
returned
- the serviced requestboolean areTooManyWorkers()
void notifyWorkerFinished()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |