net.sf.mmm.util.process.api
Interface AsyncProcessExecutor

All Superinterfaces:
Future<Integer>
All Known Implementing Classes:
ProcessUtilImpl.AsyncProcessExecutorImpl

public interface AsyncProcessExecutor
extends Future<Integer>

This is the interface for an async executor of a Process.

Since:
1.0.0
Author:
Joerg Hohwiller (hohwille at users.sourceforge.net)

Method Summary
 Integer get()
          
 Integer get(long timeout, TimeUnit unit)
          
 
Methods inherited from interface java.util.concurrent.Future
cancel, isCancelled, isDone
 

Method Detail

get

Integer get()
            throws InterruptedException,
                   ExecutionException

Specified by:
get in interface Future<Integer>
Returns:
the exit-code of the process.
Throws:
InterruptedException
ExecutionException

get

Integer get(long timeout,
            TimeUnit unit)
            throws InterruptedException,
                   ExecutionException,
                   TimeoutException

Specified by:
get in interface Future<Integer>
Returns:
the exit-code of the process.
Throws:
InterruptedException
ExecutionException
TimeoutException


Copyright © 2001-2010 mmm-Team. All Rights Reserved.