|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object fr.gouv.culture.util.apache.avalon.excalibur.concurrent.Semaphore fr.gouv.culture.util.apache.avalon.excalibur.concurrent.Mutex fr.gouv.culture.util.apache.cocoon.xml.AbstractSynchronizedXMLProducer
public abstract class AbstractSynchronizedXMLProducer
Field Summary | |
---|---|
protected SynchronizedXMLConsumer |
synchronizedXmlConsumer
The XMLConsumer receiving SAX events. |
Fields inherited from interface EDU.oswego.cs.dl.util.concurrent.Sync |
---|
ONE_CENTURY, ONE_DAY, ONE_HOUR, ONE_MINUTE, ONE_SECOND, ONE_WEEK, ONE_YEAR |
Constructor Summary | |
---|---|
AbstractSynchronizedXMLProducer()
|
Method Summary | |
---|---|
void |
recycle()
Recycle the producer by removing references |
void |
setConsumer(SynchronizedXMLConsumer consumer)
Set the XMLConsumer that will receive XML data. |
void |
setConsumer(org.apache.cocoon.xml.XMLConsumer consumer)
Set the XMLConsumer that will receive XML data. |
Methods inherited from class fr.gouv.culture.util.apache.avalon.excalibur.concurrent.Mutex |
---|
acquired, isAcquired |
Methods inherited from class fr.gouv.culture.util.apache.avalon.excalibur.concurrent.Semaphore |
---|
acquire, attempt, getTokens, release |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface fr.gouv.culture.util.apache.cocoon.xml.SynchronizedXMLProducer |
---|
acquired |
Methods inherited from interface EDU.oswego.cs.dl.util.concurrent.Sync |
---|
acquire, attempt, release |
Field Detail |
---|
protected SynchronizedXMLConsumer synchronizedXmlConsumer
XMLConsumer
receiving SAX events.
Constructor Detail |
---|
public AbstractSynchronizedXMLProducer()
Method Detail |
---|
public void setConsumer(SynchronizedXMLConsumer consumer)
XMLConsumer
that will receive XML data.
setConsumer
in interface SynchronizedXMLProducer
public void setConsumer(org.apache.cocoon.xml.XMLConsumer consumer)
XMLConsumer
that will receive XML data.
Note we will attempt to synchronize this internally. Do not use
this method if peforming synchronization externally on the provided
consumer as this will cause deadlock since we synchronize internally.
To be safe use @see setConsumer(SynchronizedXMLConsumer consumer).
setConsumer
in interface org.apache.cocoon.xml.XMLProducer
public void recycle()
recycle
in interface org.apache.avalon.excalibur.pool.Recyclable
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |