Package org.onyx.api
Class Feed<T>
java.lang.Object
org.onyx.api.Feed<T>
- All Implemented Interfaces:
Iterable<T>
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classstatic classstatic classstatic classA builder class for listing feeds in the ledger.static classstatic class -
Field Summary
FieldsModifier and TypeFieldDescriptionIndicates the last transaction consumed by this feed.When set, contains the exception thrown by the iterator that caused it to exit prematurely.The query filter used in /stream-feed-items.A list of parameters to be interpolated into the filter expression.Unique identifier of the feed.Type of feed, "action" or "transaction". -
Constructor Summary
Constructors -
Method Summary
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface java.lang.Iterable
forEach, spliterator
-
Field Details
-
id
Unique identifier of the feed. -
type
Type of feed, "action" or "transaction". -
filter
The query filter used in /stream-feed-items. -
filterParams
A list of parameters to be interpolated into the filter expression. -
cursor
Indicates the last transaction consumed by this feed. -
exception
When set, contains the exception thrown by the iterator that caused it to exit prematurely.
-
-
Constructor Details
-
Feed
public Feed()
-
-
Method Details
-
iterator
-
ack
- Throws:
ChainException
-
delete
- Throws:
ChainException
-