Package org.oddjob.beanbus.destinations
Class BadBeanFilter<T>
java.lang.Object
org.oddjob.beanbus.destinations.BadBeanFilter<T>
- Type Parameters:
T-
- Author:
- rob
Description
Something that will catch bad beans and pass them to a handler.-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidConsumer<? super BadBeanTransfer<T>> intintgetCount()getName()getTo()voidsetBadBeanHandler(Consumer<? super BadBeanTransfer<T>> badBeanHandler) voidvoidSet the out bound destination.voidstart()Start the service.voidstop()Stop executing.toString()
-
Constructor Details
-
BadBeanFilter
public BadBeanFilter()
-
-
Method Details
-
start
Description copied from interface:ServiceStart the service. -
stop
Description copied from interface:StoppableStop executing. This method should not return until the Stoppable has actually stopped.- Specified by:
stopin interfaceStoppable- Throws:
FailedToStopException
-
accept
-
setTo
Description copied from interface:OutboundSet the out bound destination. -
getTo
-
getBadBeanHandler
-
setBadBeanHandler
-
getName
-
setName
-
getBadCount
public int getBadCount() -
toString
-
getCount
public int getCount()
-