|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
Filter Interface. Component w/in the GOF Composite pattern w/ the added functionality of a 'Runnable' to support multi-threaded filter processing.
Method Summary | |
java.lang.String |
getName()
For tracking purposes. |
void |
init(java.util.Properties p)
Initialize any local resources |
void |
markForDeath()
Tag this filter to shutdown. |
int |
numThreads()
Return the suggested number of threads to launch for this Filter. |
void |
process()
do filter processing. |
void |
reset()
reset the filter to ensure that it's ready to process records again. |
void |
setErrorChannel(Consumer err)
Set the holding bin used for errored records.. |
void |
setExceptionHandler(ExceptionHandler h)
Set the handler used for reporting fatal errors during Filter processing. |
void |
setInbound(Supplier c)
Set the inbound delivery mechanism. |
void |
setOutbound(Consumer c)
Set the outbound delivery mechanism. |
Methods inherited from interface java.lang.Runnable |
run |
Method Detail |
public void init(java.util.Properties p) throws InitializationException
p
-
InitializationException
public void process() throws ProcessingException
ProcessingException
public void setInbound(Supplier c)
c
- public void setOutbound(Consumer c)
c
- public void setErrorChannel(Consumer err)
err
- public void setExceptionHandler(ExceptionHandler h)
h
- - the exception handler to use when reporting exceptionspublic void markForDeath()
public void reset()
public java.lang.String getName()
public int numThreads()
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |