All Downloads are FREE. Search and download functionalities are using the official Maven repository.

zio.kafka.consumer.internal.SubscriptionState.scala Maven / Gradle / Ivy

There is a newer version: 2.9.0
Show newest version
package zio.kafka.consumer.internal

import zio.kafka.consumer.Subscription

private[internal] sealed trait SubscriptionState {
  def isSubscribed: Boolean =
    this match {
      case _: SubscriptionState.Subscribed => true
      case SubscriptionState.NotSubscribed => false
    }
}
private[internal] object SubscriptionState {
  case object NotSubscribed                                                          extends SubscriptionState
  final case class Subscribed(subscriptions: Set[Subscription], union: Subscription) extends SubscriptionState
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy