org.apache.jackrabbit.spi.commons.batch
Interface ConsolidatingChangeLog.CancelableOperation

All Superinterfaces:
Operation
All Known Implementing Classes:
ConsolidatingChangeLog.CancelableOperations.AddNode, ConsolidatingChangeLog.CancelableOperations.AddProperty, ConsolidatingChangeLog.CancelableOperations.Empty, ConsolidatingChangeLog.CancelableOperations.Move, ConsolidatingChangeLog.CancelableOperations.Remove, ConsolidatingChangeLog.CancelableOperations.ReorderNodes, ConsolidatingChangeLog.CancelableOperations.SetMixins, ConsolidatingChangeLog.CancelableOperations.SetPrimaryType, ConsolidatingChangeLog.CancelableOperations.SetValue
Enclosing class:
ConsolidatingChangeLog

protected static interface ConsolidatingChangeLog.CancelableOperation
extends Operation

This class represent an Operation which can be cancelled by another operation or which cancels another operation.


Field Summary
static int CANCEL_BOTH
          This operation and the other operation cancel each other mutually
static int CANCEL_NONE
          No cancellation
static int CANCEL_OTHER
          This operation cancels the other operation
static int CANCEL_THIS
          The other operation cancels this operations
 
Method Summary
 int cancel(ConsolidatingChangeLog.CancelableOperation other)
          Determines the cancellation behavior of the other operation on this operation.
 
Methods inherited from interface org.apache.jackrabbit.spi.commons.batch.Operation
apply
 

Field Detail

CANCEL_THIS

static final int CANCEL_THIS
The other operation cancels this operations

See Also:
Constant Field Values

CANCEL_OTHER

static final int CANCEL_OTHER
This operation cancels the other operation

See Also:
Constant Field Values

CANCEL_BOTH

static final int CANCEL_BOTH
This operation and the other operation cancel each other mutually

See Also:
Constant Field Values

CANCEL_NONE

static final int CANCEL_NONE
No cancellation

See Also:
Constant Field Values
Method Detail

cancel

int cancel(ConsolidatingChangeLog.CancelableOperation other)
           throws RepositoryException
Determines the cancellation behavior of the other operation on this operation.

Parameters:
other -
Returns:
Either CANCEL_THIS, CANCEL_OTHER, CANCEL_OTHER or CANCEL_NONE
Throws:
RepositoryException


Copyright © 2004-2010 The Apache Software Foundation. All Rights Reserved.