P - the produced element generic typeC - the consumer element generic typepublic interface Producer<P,C extends Consumer<? super P>>
extends java.io.Closeable
| Modifier and Type | Method and Description |
|---|---|
void |
close()
Close the producer.
|
java.lang.Class<P> |
getProducedType()
Returns the class of the produced type.
|
void |
open(C consumer)
Open the producer with the specified consumer.
|
java.lang.Class<P> getProducedType()
void open(C consumer)
consumer - the consumervoid close()
throws java.io.IOException,
java.lang.reflect.UndeclaredThrowableException
close in interface java.lang.AutoCloseableclose in interface java.io.Closeablejava.io.IOException - any io exceptionjava.lang.reflect.UndeclaredThrowableException - anything other kind of exceptionCopyright © 2014 eXo Platform SAS. All Rights Reserved.