Package io.serialized.client.feed
Class FeedClient
java.lang.Object
io.serialized.client.feed.FeedClient
- All Implemented Interfaces:
Closeable,AutoCloseable
public class FeedClient extends Object implements Closeable
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classFeedClient.BuilderclassFeedClient.FeedRequest -
Method Summary
Modifier and Type Method Description FeedClient.FeedRequestall()voidclose()FeedClient.FeedRequestfeed(String feedName)static FeedClient.BuilderfeedClient(SerializedClientConfig config)longgetCurrentGlobalSequenceNumber()Gets the current project global sequence number.longgetCurrentSequenceNumber(String feedName)Gets the current sequence number given a feed.List<Feed>listFeeds()
-
Method Details
-
feedClient
-
listFeeds
- Returns:
- Feed names and details.
-
getCurrentGlobalSequenceNumber
public long getCurrentGlobalSequenceNumber()Gets the current project global sequence number.- Returns:
- The current sequence number, i.e the sequence number of the most recently stored event batch, regardless of feed.
-
getCurrentSequenceNumber
Gets the current sequence number given a feed.- Parameters:
feedName- Name of feed- Returns:
- The current sequence number, i.e the sequence number of the most recently stored event batch.
-
feed
-
all
-
close
public void close()- Specified by:
closein interfaceAutoCloseable- Specified by:
closein interfaceCloseable
-