cluster apis for typed, #21226

* Cluster management (join, leave, etc)
* Cluster membership subscriptions (MemberUp, MemberRemoved, etc)
* New SelfUp and SelfRemoved events
* change signature of awaitAssert to return the value (not binary compatible)
* Cluster singleton api
This commit is contained in:
Johan Andrén 2017-09-21 17:58:29 +02:00 committed by Patrik Nordwall
parent 94f0492873
commit c31f6b862f
22 changed files with 1397 additions and 56 deletions

View file

@ -13,7 +13,7 @@ import akka.cluster.MemberStatus._
import akka.event.EventStream
import akka.dispatch.{ RequiresMessageQueue, UnboundedMessageQueueSemantics }
import akka.actor.DeadLetterSuppression
import akka.annotation.InternalApi
import akka.annotation.{ DoNotInherit, InternalApi }
import scala.collection.breakOut
import scala.runtime.AbstractFunction5
@ -53,8 +53,11 @@ object ClusterEvent {
/**
* Marker interface for cluster domain events.
*
* Not intended for user extension.
*/
sealed trait ClusterDomainEvent extends DeadLetterSuppression
@DoNotInherit
trait ClusterDomainEvent extends DeadLetterSuppression
// for binary compatibility (used to be a case class)
object CurrentClusterState extends AbstractFunction5[immutable.SortedSet[Member], Set[Member], Set[Address], Option[Address], Map[String, Option[Address]], CurrentClusterState] {