public class ESConflictImpl extends AbstractAPIImpl<ESConflict,ConflictBucket> implements ESConflict
ESConflict and ConflictBucket.| Constructor and Description |
|---|
ESConflictImpl(ConflictBucket internalType)
Constructs a new instance by wrapping a
ConflictBucket. |
| Modifier and Type | Method and Description |
|---|---|
Set<ESOperation> |
getLocalOperations()
The involved local operations.
|
Set<ESOperation> |
getRemoteOperations()
The involved remote operations.
|
void |
resolveConflict(Set<ESOperation> acceptedLocalOperations,
Set<ESOperation> rejectedRemoteOperations)
Resolve the conflict by accepting the given local operations and rejecting the given remote operations.
|
equals, hashCode, toInternalAPIpublic ESConflictImpl(ConflictBucket internalType)
ConflictBucket.internalType - the internal objectpublic Set<ESOperation> getLocalOperations()
getLocalOperations in interface ESConflictESConflict.getLocalOperations()public Set<ESOperation> getRemoteOperations()
getRemoteOperations in interface ESConflictESConflict.getRemoteOperations()public void resolveConflict(Set<ESOperation> acceptedLocalOperations, Set<ESOperation> rejectedRemoteOperations)
resolveConflict in interface ESConflictacceptedLocalOperations - a list of local accepted operationsrejectedRemoteOperations - a list of rejected remote operationsESConflict.resolveConflict(java.util.Set, java.util.Set)Copyright © 2017. All rights reserved.