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:
parent
94f0492873
commit
c31f6b862f
22 changed files with 1397 additions and 56 deletions
|
|
@ -15,7 +15,7 @@ import akka.dispatch.MonitorableThreadFactory
|
|||
import akka.event.{ Logging, LoggingAdapter }
|
||||
import akka.japi.Util
|
||||
import akka.pattern._
|
||||
import akka.remote.{ DefaultFailureDetectorRegistry, FailureDetector, _ }
|
||||
import akka.remote.{ DefaultFailureDetectorRegistry, _ }
|
||||
import com.typesafe.config.{ Config, ConfigFactory }
|
||||
|
||||
import scala.annotation.varargs
|
||||
|
|
@ -215,6 +215,11 @@ class Cluster(val system: ExtendedActorSystem) extends Extension {
|
|||
*/
|
||||
def state: CurrentClusterState = readView.state
|
||||
|
||||
/**
|
||||
* Current snapshot of the member itself
|
||||
*/
|
||||
def selfMember: Member = readView.self
|
||||
|
||||
/**
|
||||
* Subscribe to one or more cluster domain events.
|
||||
* The `to` classes can be [[akka.cluster.ClusterEvent.ClusterDomainEvent]]
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue