| | |
| | | skipPostOperation = false; |
| | | |
| | | // Check for a request to cancel this operation. |
| | | if (getCancelRequest() != null) |
| | | if (cancelIfRequested()) |
| | | { |
| | | return; |
| | | } |
| | |
| | | } |
| | | |
| | | // Check for a request to cancel this operation. |
| | | if (getCancelRequest() != null) |
| | | if (cancelIfRequested()) |
| | | { |
| | | return; |
| | | } |
| | |
| | | try |
| | | { |
| | | // Check for a request to cancel this operation. |
| | | if (getCancelRequest() != null) |
| | | if (cancelIfRequested()) |
| | | { |
| | | return; |
| | | } |
| | |
| | | } |
| | | |
| | | // Check for a request to cancel this operation. |
| | | if (getCancelRequest() != null) |
| | | if (cancelIfRequested()) |
| | | { |
| | | return; |
| | | } |
| | |
| | | |
| | | |
| | | // Check for a request to cancel this operation. |
| | | if (getCancelRequest() != null) |
| | | if (cancelIfRequested()) |
| | | { |
| | | return; |
| | | } |
| | |
| | | |
| | | |
| | | /** |
| | | * Checks to determine whether there has been a request to cancel this |
| | | * operation. If so, then set the cancel result and processing stop time. |
| | | * |
| | | * @return {@code true} if there was a cancel request, or {@code false} if |
| | | * not. |
| | | */ |
| | | private boolean cancelIfRequested() |
| | | { |
| | | if (getCancelRequest() == null) |
| | | { |
| | | return false; |
| | | } |
| | | |
| | | indicateCancelled(getCancelRequest()); |
| | | setProcessingStopTime(); |
| | | return true; |
| | | } |
| | | |
| | | |
| | | |
| | | /** |
| | | * Acquire a read lock on the parent of the entry to add. |
| | | * |
| | | * @return The acquired read lock. |