public interface Digester<J>
Digester
provides the functionality to consume a job (which is
pushed from the outside) for further processing. Job instances may reflect
(parts of) a protocol or signals from another system. The Digester
is
similar to an observer (listener) with the semantic difference of usually
being bound to exactly one job providing system (whereas an observer may be
one of many observers observing the same observable).Modifier and Type | Method and Description |
---|---|
void |
digest(J aJob)
The
digest(Object) method is invoked in order to trigger
processing of the provided job, e.g. start execution depending on the job
instance being provided from the outside. |
void digest(J aJob) throws DigestException
digest(Object)
method is invoked in order to trigger
processing of the provided job, e.g. start execution depending on the job
instance being provided from the outside.aJob
- The job to be digested.DigestException
- thrown in case digesting (processing) a job by a
digest(Object)
caused problems;he cause is
usually wrapped by this Exception
.Copyright © 2017. All rights reserved.