public final class FastFailover
extends java.lang.Object
implements akka.actor.Extension
| Modifier and Type | Class and Description |
|---|---|
static class |
FastFailover.Attempt
Sent to a fast failover routee to ask it to attempt the operation for the given message.
|
static class |
FastFailover.Attempt$ |
static class |
FastFailover.Fail$
An error should cause the operation to fail.
|
static class |
FastFailover.Failover$
An error should cause the operation to failover.
|
static interface |
FastFailover.FailureDirective
A failure directive.
|
static class |
FastFailover.Heartbeat
A heartbeat.
|
static class |
FastFailover.Heartbeat$ |
static interface |
FastFailover.MessageExtractor
Java API: Interface of functions to extract entity id
and the message to send to the entity from an incoming message.
|
static class |
FastFailover.Result
The result of an attempt.
|
static class |
FastFailover.Result$ |
| Constructor and Description |
|---|
FastFailover(akka.actor.ExtendedActorSystem system) |
| Modifier and Type | Method and Description |
|---|---|
static T |
apply(akka.actor.ActorSystem system) |
static FastFailover |
createExtension(akka.actor.ExtendedActorSystem system) |
static boolean |
equals(java.lang.Object other) |
static scala.PartialFunction<java.lang.Object,scala.Tuple2<java.lang.String,java.lang.Object>> |
extractEntityId()
Extract entity id function to use with cluster sharding.
|
static scala.Function1<java.lang.Object,java.lang.String> |
extractShardId(int numShards)
Extract shard id function to use with cluster sharding.
|
static FastFailover.Fail$ |
fail()
Java API: An error should cause the operation to fail.
|
static FastFailover.Failover$ |
failover()
Java API: An error should cause the operation to failover.
|
static FastFailover |
get(akka.actor.ActorSystem system) |
static int |
hashCode() |
static FastFailover$ |
lookup() |
akka.actor.ActorRef |
start(java.lang.String actorName,
FastFailoverSettings settings,
scala.collection.immutable.IndexedSeq<akka.routing.Routee> routees,
scala.PartialFunction<java.lang.Object,scala.Tuple2<java.lang.String,java.lang.Object>> extractEntityId,
scala.PartialFunction<java.lang.Throwable,FastFailover.FailureDirective> failureStrategy)
Start a fast failover actor.
|
akka.actor.ActorRef |
start(java.lang.String actorName,
FastFailoverSettings settings,
java.lang.Iterable<akka.routing.Routee> routees,
FastFailover.MessageExtractor messageExtractor,
scala.PartialFunction<java.lang.Throwable,FastFailover.FailureDirective> failureStrategy)
Java API: Start a fast failover actor.
|
public static scala.PartialFunction<java.lang.Object,scala.Tuple2<java.lang.String,java.lang.Object>> extractEntityId()
Provided for convenience
public static scala.Function1<java.lang.Object,java.lang.String> extractShardId(int numShards)
Provided for convenience.
numShards - (undocumented)public static FastFailover.Fail$ fail()
public static FastFailover.Failover$ failover()
public static FastFailover get(akka.actor.ActorSystem system)
public static FastFailover$ lookup()
public static FastFailover createExtension(akka.actor.ExtendedActorSystem system)
public static T apply(akka.actor.ActorSystem system)
public static final int hashCode()
public static final boolean equals(java.lang.Object other)
public akka.actor.ActorRef start(java.lang.String actorName,
FastFailoverSettings settings,
scala.collection.immutable.IndexedSeq<akka.routing.Routee> routees,
scala.PartialFunction<java.lang.Object,scala.Tuple2<java.lang.String,java.lang.Object>> extractEntityId,
scala.PartialFunction<java.lang.Throwable,FastFailover.FailureDirective> failureStrategy)
actorName - The name of the actor.settings - The fast failover settings for this actor.routees - The routees.extractEntityId - The function to extract the entity id from an operation.failureStrategy - The failure strategy.public akka.actor.ActorRef start(java.lang.String actorName,
FastFailoverSettings settings,
java.lang.Iterable<akka.routing.Routee> routees,
FastFailover.MessageExtractor messageExtractor,
scala.PartialFunction<java.lang.Throwable,FastFailover.FailureDirective> failureStrategy)
actorName - The name of the actor.settings - The fast failover settings for this actor.routees - The routees.messageExtractor - The message extractor.failureStrategy - The failure strategy.