GigaSpaces XAP 8.0 API

com.gigaspaces.cluster.replication.gateway.conflict
Interface DataConflictOperation


public interface DataConflictOperation

Provides an interface for handling a conflicting data operation.

Conflicting operations can be resolved using the abort() and override() methods.

It is important to understand that override() acts differently for each DataConflictOperation.OperationType (refer to ConflictCause implementations for more information).

Since:
8.0.3
Author:
eitany, idan

Nested Class Summary
static class DataConflictOperation.OperationType
          Operation type enum.
 
Method Summary
 void abort()
          Determines that the operation will be aborted.
 ConflictCause getConflictCause()
           
 Object getOperationEntry()
           
 DataConflictOperation.OperationType getOperationType()
           
 int getResolveAttempt()
           
 String getUid()
           
 boolean hasConflict()
           
 void override()
          Determines that the operation will be overridden.
 boolean supportsAbort()
           
 boolean supportsOverride()
           
 

Method Detail

getOperationType

DataConflictOperation.OperationType getOperationType()
Returns:
The operation type.

getConflictCause

ConflictCause getConflictCause()
Returns:
The ConflictCause instance representing the conflict.

hasConflict

boolean hasConflict()
Returns:
true if that operation had a conflict, otherwise false.

getOperationEntry

Object getOperationEntry()
Returns:
The user entry the operation had a conflict for.

getUid

String getUid()
Returns:
The conflicting entry's UID.

abort

void abort()
Determines that the operation will be aborted.


override

void override()
Determines that the operation will be overridden.

It is possible to change the operation's entry data using the getOperationEntry() method.


supportsOverride

boolean supportsOverride()
Returns:
true if overriding the operation is supported, otherwise false.

supportsAbort

boolean supportsAbort()
Returns:
true of aborting the operation is supported, otherwise false.

getResolveAttempt

int getResolveAttempt()
Returns:
The current resolve attempt number for the operation.

GigaSpaces XAP 8.0 API

Copyright © GigaSpaces.