public enum NoConflictResolver extends Enum<NoConflictResolver> implements ConflictResolver
ConflictResolver that does nothing. This implementation can be used in cases where
 no actual conflict is present.| Enum Constant and Description | 
|---|
INSTANCE
`
 Singleton  
NoConflictResolver instance | 
| Modifier and Type | Method and Description | 
|---|---|
void | 
detectConflicts(Predicate<List<DomainEventMessage<?>>> predicate)
Resolve conflicts between changes to be applied to the aggregate and unseen changes made to the aggregate. 
 | 
<T extends Exception> | 
detectConflicts(Predicate<List<DomainEventMessage<?>>> predicate,
               ConflictExceptionSupplier<T> exceptionSupplier)
Resolve conflicts between unseen changes made to the aggregate and new changes that are about to be made. 
 | 
<T extends Exception> | 
detectConflicts(Predicate<List<DomainEventMessage<?>>> predicate,
               ContextAwareConflictExceptionSupplier<T> exceptionSupplier)
Resolve conflicts between unseen changes made to the aggregate and new changes that are about to be made. 
 | 
static NoConflictResolver | 
valueOf(String name)
Returns the enum constant of this type with the specified name. 
 | 
static NoConflictResolver[] | 
values()
Returns an array containing the constants of this enum type, in
the order they are declared. 
 | 
public static final NoConflictResolver INSTANCE
NoConflictResolver instancepublic static NoConflictResolver[] values()
for (NoConflictResolver c : NoConflictResolver.values()) System.out.println(c);
public static NoConflictResolver valueOf(String name)
name - the name of the enum constant to be returned.IllegalArgumentException - if this enum type has no constant with the specified nameNullPointerException - if the argument is nullpublic <T extends Exception> void detectConflicts(Predicate<List<DomainEventMessage<?>>> predicate, ConflictExceptionSupplier<T> exceptionSupplier)
ConflictResolver
 Conflicts are detected using the given predicate. If the Predicate.test(Object) method
 returns true a conflict is registered. If a conflict is registered an instance of ConflictingModificationException (or subtype) is thrown immediately. The cause of the exception is supplied
 by the given causeSupplier (supplying a null cause is allowed).
detectConflicts in interface ConflictResolverpredicate - test for conflicting unseen changes. Returns true if there is a conflict.exceptionSupplier - exception to throw when a conflict is detectedpublic void detectConflicts(Predicate<List<DomainEventMessage<?>>> predicate)
ConflictResolver
 Conflicts are detected using the given predicate. If the Predicate.test(Object) method
 returns true a conflict is registered. If a conflict is registered an instance of ConflictingModificationException (or subtype) without cause is thrown immediately.
detectConflicts in interface ConflictResolverpredicate - test for conflicting unseen changes. Returns true if there is a conflict.public <T extends Exception> void detectConflicts(Predicate<List<DomainEventMessage<?>>> predicate, ContextAwareConflictExceptionSupplier<T> exceptionSupplier)
ConflictResolver
 Conflicts are detected using the given predicate. If the Predicate.test(Object) method
 returns true a conflict is registered. If a conflict is registered an instance of ConflictingModificationException (or subtype) is thrown immediately. The cause of the exception is supplied
 by the given causeSupplier (supplying a null cause is allowed).
detectConflicts in interface ConflictResolverpredicate - test for conflicting unseen changes. Returns true if there is a conflict.exceptionSupplier - exception to throw when a conflict is detectedCopyright © 2010–2025. All rights reserved.