|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
This interface enables to remotely use a producer. Note that all the objects exchanged should be Serializable.
| Method Summary | |
boolean |
isProductionOver()
Returns true if the production is over, false if not. |
java.lang.Object |
nextItem()
Returns the next item free for consumption. |
boolean |
produceItem()
Produces next item, i.e. marks it as consumable. |
void |
setProductionOver(boolean bool)
Sets a flag that shows whether the production is over. |
boolean |
validateItem(java.lang.Object theItem)
Validates an item, i.e. marks it as having been consumed. |
| Method Detail |
public void setProductionOver(boolean bool)
throws java.rmi.RemoteException
bool - The boolean value that the flag has to be set on.
java.rmi.RemoteException - if an error occurs during communication.
public boolean isProductionOver()
throws java.rmi.RemoteException
java.rmi.RemoteException - if an error occurs during communication.
public java.lang.Object nextItem()
throws java.rmi.RemoteException
java.rmi.RemoteException - if an error occurs during communication.
public boolean validateItem(java.lang.Object theItem)
throws java.rmi.RemoteException
theItem - The item to be validated.
java.rmi.RemoteException - if an error occurs during communication.
public boolean produceItem()
throws java.rmi.RemoteException
java.rmi.RemoteException - if an error occurs during communication.
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||