mirror of
https://github.com/google/nomulus
synced 2026-05-02 05:45:59 +00:00
Remove all vestiges of memcache
Memcache is already off but now it's not in the code anymore. This includes removing domain creation failfast, since that is actually slower now than just running the flow - all you gain is a non-transactional read over a transactional read, but the cost is that you always pay that read, which is going to drive up latency. ------------- Created by MOE: https://github.com/google/moe MOE_MIGRATED_REVID=158183506
This commit is contained in:
@@ -14,26 +14,11 @@
|
||||
|
||||
package google.registry.flows.exceptions;
|
||||
|
||||
import com.google.common.annotations.VisibleForTesting;
|
||||
import google.registry.flows.EppException.ObjectAlreadyExistsException;
|
||||
|
||||
/** Resource with this id already exists. */
|
||||
public class ResourceAlreadyExistsException extends ObjectAlreadyExistsException {
|
||||
|
||||
/** Whether this was thrown from a "failfast" context. Useful for testing. */
|
||||
final boolean failfast;
|
||||
|
||||
public ResourceAlreadyExistsException(String resourceId, boolean failfast) {
|
||||
super(String.format("Object with given ID (%s) already exists", resourceId));
|
||||
this.failfast = failfast;
|
||||
}
|
||||
|
||||
public ResourceAlreadyExistsException(String resourceId) {
|
||||
this(resourceId, false);
|
||||
}
|
||||
|
||||
@VisibleForTesting
|
||||
public boolean isFailfast() {
|
||||
return failfast;
|
||||
super(String.format("Object with given ID (%s) already exists", resourceId));
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user