public class WriteRecipeBuilder extends Object
WriteRecipe.| Constructor and Description |
|---|
WriteRecipeBuilder()
A new builder
|
| Modifier and Type | Method and Description |
|---|---|
WriteRecipeBuilder |
addChannel(String channelName,
WriteCache<?> writeCache)
Adds a channel and its write cache to the recipe.
|
WriteRecipe |
build(WriteFunction<Exception> exceptionWriteFunction,
ConnectionCollector connectionCollector)
Builds the recipe.
|
public WriteRecipeBuilder addChannel(String channelName, WriteCache<?> writeCache)
channelName - the name of the channelwriteCache - the cache that will store the value to writepublic WriteRecipe build(WriteFunction<Exception> exceptionWriteFunction, ConnectionCollector connectionCollector)
To finish building the recipe, one needs to specify where to send errors and where to send the connection status changes.
exceptionWriteFunction - where exception should be routedconnectionCollector - where connection status should be routedCopyright © 2010–2015. All rights reserved.