Package org.onyx.api
Class Feed.Builder<T>
java.lang.Object
org.onyx.api.Feed.Builder<T>
- Direct Known Subclasses:
Feed.Action.Builder,Feed.Transaction.Builder
-
Field Summary
Fields -
Method Summary
Modifier and TypeMethodDescriptionaddFilterParameter(Object param) Adds a filter parameter that will be interpolated into the filter expression.Creates a new feed for the ledger.Sets the filter expression for the feed.setFilterParameters(List<?> params) Specifies the parameters that will be interpolated into the filter expression.Specifies the id for the new feed.
-
Field Details
-
type
-
-
Method Details
-
create
Creates a new feed for the ledger.- Parameters:
client- ledger API connection object- Returns:
- a feed
- Throws:
ChainException
-
setId
Specifies the id for the new feed.- Parameters:
id- unique identifier. Will be auto-generated if not provided.- Returns:
- updated builder
-
setFilter
Sets the filter expression for the feed.- Parameters:
filter- a filter expression- Returns:
- updated builder
-
addFilterParameter
Adds a filter parameter that will be interpolated into the filter expression.- Parameters:
param- a filter parameter- Returns:
- updated builder
-
setFilterParameters
Specifies the parameters that will be interpolated into the filter expression.- Parameters:
params- list of filter parameters
-