public class JadiceDocumentInfoWorker extends StreamWorker<JadiceDocumentInfoNode>
Constructor and Description |
---|
JadiceDocumentInfoWorker() |
Modifier and Type | Method and Description |
---|---|
protected void |
postWork()
This method is called immediately after
NodeWorker.work() has returned. |
protected void |
preWork()
This method is called immediately before
NodeWorker.work() will be called. |
protected void |
work(Stream stream)
Implement this method in order to work on a single stream.
|
accept, reject, work
abort, abortNow, addInputBundle, addOutputBundle, doAbort, doAbortNow, error, error, error, fail, fail, fail, getController, getInputBundle, getInputBundles, getJob, getLimitSupport, getNode, getOutputBundle, getOutputBundles, getServerJob, getState, getStreamTransportFactory, getTransportSender, initialize, isAbortRequested, run, setDescriptor, setJob, toString, warn, warn, warn
protected void preWork() throws Throwable
NodeWorker
This method is called immediately before NodeWorker.work()
will be called.
Use this method e.g. to initialize objects on the same Thread
on which NodeWorker.work()
is executed in contrast to NodeWorker.initialize()
which is called on a different Thread
.
preWork
in class NodeWorker<JadiceDocumentInfoNode>
Throwable
NodeWorker.initialize()
,
#work()}
,
NodeWorker.postWork()
protected void work(Stream stream) throws IOException, com.levigo.jadice.document.JadiceException
StreamWorker
work
in class StreamWorker<JadiceDocumentInfoNode>
IOException
com.levigo.jadice.document.JadiceException
protected void postWork() throws Throwable
NodeWorker
This method is called immediately after NodeWorker.work()
has returned. It will be called even
when a failure in NodeWorker.work()
has occured.
Use this method e.g. to finalize objects on the same Thread
on which NodeWorker.work()
is
executed.
postWork
in class NodeWorker<JadiceDocumentInfoNode>
Throwable
NodeWorker.work()
,
NodeWorker.preWork()
Copyright © 2017 levigo holding gmbh. All rights reserved.