org.apache.maven.lifecycle.internal.stub
Class CompletionServiceStub

java.lang.Object
  extended by org.apache.maven.lifecycle.internal.stub.CompletionServiceStub
All Implemented Interfaces:
CompletionService<ProjectSegment>

public class CompletionServiceStub
extends Object
implements CompletionService<ProjectSegment>

Author:
Kristian Rosenvold

Constructor Summary
CompletionServiceStub(boolean finishImmediately)
           
 
Method Summary
 Future<ProjectSegment> poll()
           
 Future<ProjectSegment> poll(long timeout, TimeUnit unit)
           
 int size()
           
 Future<ProjectSegment> submit(Callable<ProjectSegment> task)
           
 Future<ProjectSegment> submit(Runnable task, ProjectSegment result)
           
 Future<ProjectSegment> take()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

CompletionServiceStub

public CompletionServiceStub(boolean finishImmediately)
Method Detail

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–2013 The Apache Software Foundation. All rights reserved.