Start line:  
End line:  

Snippet Preview

Snippet HTML Code

Stack Overflow Questions
Copyright (c) 2008, 2010 VMware Inc. All rights reserved. This program and the accompanying materials are made available under the terms of the Eclipse Public License v1.0 which accompanies this distribution, and is available at Contributors: VMware Inc. - initial contribution /
package org.eclipse.virgo.nano.core;

A Signal implementation that blocks until notified of completion or abortion.

Concurrent Semantics
public final class BlockingAbortableSignal implements AbortableSignal {
	private volatile boolean aborted = false;
	private final BlockingSignal blockingSignal;

	public void signalSuccessfulCompletion() {

	public void signalFailure(final Throwable cause) {

	public void signalAborted() {
		this. = true;
	public boolean isAborted(){
		return this.;
    public boolean awaitCompletion(long periodTimeUnit timeUnitthrows FailureSignalledException {
    	boolean complete = this..awaitCompletion(periodtimeUnit);
    		return false;
    	return complete;
New to GrepCode? Check out our FAQ X