|Constructor and Description|
|Modifier and Type||Method and Description|
Adds a channel and its read cache to the recipe.
Builds the recipe.
public ReadRecipeBuilder addChannel(String channelName, ValueCache<?> cache)
channelName- the name of the channel
cache- the cache that contains the value
public 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 routed
connectionCollector- where connection status should be routed
Copyright © 2015. All rights reserved.