|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
P
- the produced element generic typeC
- the consumer element generic typepublic interface Producer<P,C extends Consumer<? super P>>
A producer that produces elements in a specific consumer.
Method Summary | |
---|---|
void |
close()
Close the producer. |
Class<P> |
getProducedType()
Returns the class of the produced type. |
void |
open(C consumer)
Open the producer with the specified consumer. |
Method Detail |
---|
Class<P> getProducedType()
void open(C consumer) throws Exception
consumer
- the consumer
Exception
- any exceptionvoid close() throws Exception
Exception
- any exception
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |