|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.databene.benerator.consumer.ConsumerProxy
public abstract class ConsumerProxy
Parent class for Consumer
s that serve as proxy to other Consumers.
Created: 22.10.2009 16:18:07
Field Summary | |
---|---|
protected Consumer |
target
|
Constructor Summary | |
---|---|
ConsumerProxy(Consumer target)
|
Method Summary | |
---|---|
void |
close()
When called, the implementor has to close and free all resources. |
void |
finishConsuming(ProductWrapper<?> wrapper)
Starts consumption of an object. |
void |
flush()
Is called by Benerator for advising the Consumer to finish processing of the objects consumed so far. |
Consumer |
getTarget()
|
boolean |
isParallelizable()
|
boolean |
isThreadSafe()
|
void |
setTarget(Consumer target)
|
void |
startConsuming(ProductWrapper<?> wrapper)
Starts consumption of an object. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
protected Consumer target
Constructor Detail |
---|
public ConsumerProxy(Consumer target)
Method Detail |
---|
public boolean isThreadSafe()
isThreadSafe
in interface org.databene.commons.ThreadAware
public boolean isParallelizable()
isParallelizable
in interface org.databene.commons.ThreadAware
public Consumer getTarget()
public void setTarget(Consumer target)
public void startConsuming(ProductWrapper<?> wrapper)
Consumer
startConsuming
in interface Consumer
public void finishConsuming(ProductWrapper<?> wrapper)
Consumer
finishConsuming
in interface Consumer
public void flush()
Consumer
pageSize
attribute.
flush
in interface java.io.Flushable
flush
in interface Consumer
public void close()
Consumer
close
in interface java.io.Closeable
close
in interface Consumer
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |