JAVA-1085: Implement a pluggable retry strategy for idempotent operations.