public class CircuitBreakerCommandExecutor extends java.lang.Object implements CommandExecutor
CommandExecutor with built-in retry, circuit-breaker, and failover to another cluster/database endpoint. With this executor users can seamlessly failover to Disaster Recovery (DR), Backup, and Active-Active cluster(s) by using simple configuration which is passed through from Resilience4j - https://resilience4j.readme.io/docs
Constructor and Description |
---|
CircuitBreakerCommandExecutor(MultiClusterPooledConnectionProvider provider) |
Modifier and Type | Method and Description |
---|---|
void |
close() |
<T> T |
executeCommand(CommandObject<T> commandObject) |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
broadcastCommand
public CircuitBreakerCommandExecutor(MultiClusterPooledConnectionProvider provider)
public void close()
close
in interface java.lang.AutoCloseable
public <T> T executeCommand(CommandObject<T> commandObject)
executeCommand
in interface CommandExecutor
Copyright © 2023. All rights reserved.