@Override
protected ModelNode invokeCommand(Cache<?, ?> cache, ModelNode operation) throws Exception {
long internalId = operation.require(ModelKeys.TX_INTERNAL_ID).asLong();
RecoveryAdminOperations recoveryAdminOperations = SecurityActions.getComponentRegistry(cache.getAdvancedCache()).getComponent(RecoveryAdminOperations.class);
return toOperationResult(recoveryAdminOperations.forceRollback(internalId));
}
}
public static class TransactionForgetCommand extends CacheCommands {
public static final TransactionForgetCommand INSTANCE = new TransactionForgetCommand();