public abstract class AbstractFeed<T,I extends FeedItem> extends Object implements Feed<T,I>
Process.Event, Process.EventPoint
Modifier and Type | Field and Description |
---|---|
protected Consumer<T> |
consumer
Consumer for items being written |
protected Collection<Supplier<Collection<I>>> |
itemsSuppliers
Collection of
Supplier s that provide
The items to be supplied for this channel |
protected Collection<Consumer<T>> |
subFeedConsumers
These consume this
Feed and add to it. |
protected Collection<Supplier<T>> |
subFeedSuppliers
A sub-feed in the format.
|
Constructor and Description |
---|
AbstractFeed() |
Modifier and Type | Method and Description |
---|---|
Consumer<T> |
getConsumer()
Consumer for items being written |
Collection<Supplier<Collection<I>>> |
getItemsSuppliers()
Collection of
Supplier s that provide
The items to be supplied for this channel |
Collection<Consumer<T>> |
getSubFeedConsumers()
These consume this
Feed and add to it. |
Collection<Supplier<T>> |
getSubFeedSuppliers()
A sub-feed in the format.
|
void |
setConsumer(Consumer<T> consumer)
Consumer for items being written |
void |
setItemsSuppliers(Collection<Supplier<Collection<I>>> itemsSuppliers)
Collection of
Supplier s that provide
The items to be supplied for this channel |
void |
setSubFeedConsumers(Collection<Consumer<T>> subFeedConsumers)
These consume this
Feed and add to it. |
void |
setSubFeedSuppliers(Collection<Supplier<T>> subFeedSuppliers)
A sub-feed in the format.
|
protected abstract T |
writeBaseItem(I item,
T feed)
Write the base Item for the
FeedItem |
protected void |
writeItems(T feed) |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
transform, writeItemToConsumer
protected Collection<Supplier<Collection<I extends FeedItem>>> itemsSuppliers
Supplier
s that provide
The items to be supplied for this channelprotected Collection<Supplier<T>> subFeedSuppliers
Feed
can be a Sub-Feed.protected Collection<Consumer<T>> subFeedConsumers
Feed
and add to it.protected void writeItems(T feed)
protected abstract T writeBaseItem(I item, T feed) throws Continue
FeedItem
public Collection<Supplier<Collection<I>>> getItemsSuppliers()
Supplier
s that provide
The items to be supplied for this channelgetItemsSuppliers
in interface Feed<T,I extends FeedItem>
public void setItemsSuppliers(Collection<Supplier<Collection<I>>> itemsSuppliers)
Supplier
s that provide
The items to be supplied for this channelsetItemsSuppliers
in interface Feed<T,I extends FeedItem>
public Collection<Supplier<T>> getSubFeedSuppliers()
Feed
can be a Sub-Feed.public void setSubFeedSuppliers(Collection<Supplier<T>> subFeedSuppliers)
Feed
can be a Sub-Feed.public Collection<Consumer<T>> getSubFeedConsumers()
Feed
and add to it.public void setSubFeedConsumers(Collection<Consumer<T>> subFeedConsumers)
Feed
and add to it.Copyright © 2018. All rights reserved.