|Constructor and Description|
A new builder
|Modifier and Type||Method and Description|
Adds a channel and its write cache to the recipe.
Builds the recipe.
public WriteRecipeBuilder addChannel(String channelName, WriteCache<?> writeCache)
channelName- the name of the channel
writeCache- the cache that will store the value to write
public 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 routed
connectionCollector- where connection status should be routed
Copyright © 2010–2015. All rights reserved.