P - the produced element generic typeC - the consumer element generic typepublic interface Producer<P,C extends Consumer<? super P>> extends Closeable
Class<P> getProducedType()
void open(C consumer)
consumer - the consumervoid close() throws IOException, UndeclaredThrowableException
close in interface AutoCloseableclose in interface CloseableIOException - any io exceptionUndeclaredThrowableException - anything other kind of exceptionCopyright © 2014 eXo Platform SAS. All Rights Reserved.