org.apache.maven.lifecycle.internal.stub
Class CompletionServiceStub
java.lang.Object
org.apache.maven.lifecycle.internal.stub.CompletionServiceStub
- All Implemented Interfaces:
- CompletionService<ProjectSegment>
public class CompletionServiceStub
- extends Object
- implements CompletionService<ProjectSegment>
- Author:
- Kristian Rosenvold
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
CompletionServiceStub
public CompletionServiceStub(boolean finishImmediately)
size
public int size()
submit
public Future<ProjectSegment> submit(Callable<ProjectSegment> task)
- Specified by:
submit
in interface CompletionService<ProjectSegment>
submit
public Future<ProjectSegment> submit(Runnable task,
ProjectSegment result)
- Specified by:
submit
in interface CompletionService<ProjectSegment>
take
public Future<ProjectSegment> take()
throws InterruptedException
- Specified by:
take
in interface CompletionService<ProjectSegment>
- Throws:
InterruptedException
poll
public Future<ProjectSegment> poll()
- Specified by:
poll
in interface CompletionService<ProjectSegment>
poll
public Future<ProjectSegment> poll(long timeout,
TimeUnit unit)
throws InterruptedException
- Specified by:
poll
in interface CompletionService<ProjectSegment>
- Throws:
InterruptedException
Copyright © 2001-2011 The Apache Software Foundation. All Rights Reserved.