public class ReadRecipeBuilder extends Object
ReadRecipe.| Constructor and Description |
|---|
ReadRecipeBuilder() |
| Modifier and Type | Method and Description |
|---|---|
ReadRecipeBuilder |
addChannel(String channelName,
ValueCache<?> cache)
Adds a channel and its read cache to the recipe.
|
ReadRecipe |
build(WriteFunction<Exception> exceptionWriteFunction,
ConnectionCollector connectionCollector)
Builds the recipe.
|
public ReadRecipeBuilder addChannel(String channelName, ValueCache<?> cache)
channelName - the name of the channelcache - the cache that contains the valuepublic ReadRecipe 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 © 2015. All rights reserved.