StreamStatusManager

class StreamStatusManager(feeds: List<Feed>, emit: (AirbyteStreamStatusTraceMessage) -> Unit)

StreamStatusManager emits AirbyteStreamStatusTraceMessages in response to Feed activity events, via notifyStarting, notifyComplete and notifyFailure.

Constructors

Link copied to clipboard
constructor(feeds: List<Feed>, emit: (AirbyteStreamStatusTraceMessage) -> Unit)

Types

Link copied to clipboard
Link copied to clipboard
data class StreamState(val id: StreamIdentifier, val feeds: Set<Feed>, val state: AtomicReference<StreamStatusManager.State> = AtomicReference(State.PENDING), val stoppedFeeds: ConcurrentHashSet<Feed> = ConcurrentHashSet(), val numStoppedFeeds: AtomicInteger = AtomicInteger())

Functions

Link copied to clipboard
fun notifyComplete(feed: Feed)

Notify that the feed has completed running.

Link copied to clipboard
fun notifyFailure(feed: Feed)

Notify that the feed has stopped running due to a failure.

Link copied to clipboard
fun notifyStarting(feed: Feed)

Notify that the feed is about to start running.