o

ackcord

DiscordShard

object DiscordShard

Source
DiscordShard.scala
Linear Supertypes
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. DiscordShard
  2. AnyRef
  3. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. Protected

Type Members

  1. sealed trait Command extends AnyRef
  2. case class FetchWSGatewayBotInfo(gateway: Uri, shards: Int, sessionStartLimits: SessionStartLimits) extends Product with Serializable
  3. case class Parameters(gatewayUri: Uri, settings: GatewaySettings, events: Events, context: ActorContext[Command], timers: TimerScheduler[Command], log: Logger) extends Product with Serializable
  4. case class SessionStartLimits(total: Int, remaining: Int, resetAfter: Duration, maxConcurrency: Int) extends Product with Serializable
  5. case class State(gatewayHandler: ActorRef[gateway.GatewayHandler.Command], isShuttingDown: Boolean = false, isRestarting: Boolean = false) extends Product with Serializable

Value Members

  1. final def !=(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  2. final def ##: Int
    Definition Classes
    AnyRef → Any
  3. final def ==(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  4. def apply(wsUri: Uri, settings: GatewaySettings, events: Events): Behavior[Command]

    The core actor that controls all the other used actors of AckCord

    The core actor that controls all the other used actors of AckCord

    wsUri

    The gateway websocket uri

    settings

    The settings to use

    events

    The events instance to use for this shard

  5. final def asInstanceOf[T0]: T0
    Definition Classes
    Any
  6. def clone(): AnyRef
    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.CloneNotSupportedException]) @native() @IntrinsicCandidate()
  7. final def eq(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  8. def equals(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef → Any
  9. def fetchWsGateway(implicit system: ActorSystem[Nothing]): Future[Uri]

    Fetch the websocket gateway.

    Fetch the websocket gateway.

    system

    The actor system to use.

    returns

    An URI with the websocket gateway uri.

  10. def fetchWsGatewayWithShards(token: String)(implicit system: ActorSystem[Nothing]): Future[FetchWSGatewayBotInfo]

    Fetch the websocket gateway with information about how many shards should be used.

    Fetch the websocket gateway with information about how many shards should be used.

    system

    The actor system to use.

    returns

    An URI with the websocket gateway uri.

  11. final def getClass(): Class[_ <: AnyRef]
    Definition Classes
    AnyRef → Any
    Annotations
    @native() @IntrinsicCandidate()
  12. def hashCode(): Int
    Definition Classes
    AnyRef → Any
    Annotations
    @native() @IntrinsicCandidate()
  13. final def isInstanceOf[T0]: Boolean
    Definition Classes
    Any
  14. def many(wsUri: Uri, shardTotal: Int, settings: GatewaySettings, events: Events): Seq[Behavior[Command]]

    Create many shard actors, given the needed arguments.

    Create many shard actors, given the needed arguments.

    wsUri

    The websocket gateway uri.

    shardTotal

    The amount of shards to create.

    settings

    The settings to use.

  15. final def ne(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  16. final def notify(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native() @IntrinsicCandidate()
  17. final def notifyAll(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native() @IntrinsicCandidate()
  18. def startShards(shards: Seq[ActorRef[Command]])(implicit system: ActorSystem[Nothing]): Future[Done]

    Sends a login message to all the shards in the sequence, while obeying IDENTIFY ratelimits.

  19. final def synchronized[T0](arg0: => T0): T0
    Definition Classes
    AnyRef
  20. def toString(): String
    Definition Classes
    AnyRef → Any
  21. final def wait(arg0: Long, arg1: Int): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException])
  22. final def wait(arg0: Long): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException]) @native()
  23. final def wait(): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException])
  24. case object RestartShard extends Command with Product with Serializable

    Send this to log out and log in again this shard.

  25. case object StartShard extends Command with Product with Serializable

    Send this to the client to log in.

  26. case object StopShard extends Command with Product with Serializable

    Send this to the client to log out and stop gracefully.

Deprecated Value Members

  1. def finalize(): Unit
    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.Throwable]) @Deprecated
    Deprecated

Inherited from AnyRef

Inherited from Any

Ungrouped