hep.io.root.daemon.xrootd
Class FutureResponse<V>

java.lang.Object
  extended by hep.io.root.daemon.xrootd.FutureResponse<V>
All Implemented Interfaces:
Future<V>

public abstract class FutureResponse<V>
extends Object
implements Future<V>

A future returned when executing asynchronous operations.

Author:
tonyj

Constructor Summary
FutureResponse()
           
 
Method Summary
 boolean cancel(boolean mayInterruptIfRunning)
           
 V get()
           
 V get(long timeout, TimeUnit unit)
           
 V getResponse()
           
abstract  V getResponse(long timeout, TimeUnit unit)
           
 boolean isCancelled()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface java.util.concurrent.Future
isDone
 

Constructor Detail

FutureResponse

public FutureResponse()
Method Detail

getResponse

public V getResponse()
              throws IOException
Throws:
IOException

cancel

public boolean cancel(boolean mayInterruptIfRunning)
Specified by:
cancel in interface Future<V>

isCancelled

public boolean isCancelled()
Specified by:
isCancelled in interface Future<V>

get

public V get()
      throws InterruptedException,
             ExecutionException
Specified by:
get in interface Future<V>
Throws:
InterruptedException
ExecutionException

get

public V get(long timeout,
             TimeUnit unit)
      throws InterruptedException,
             ExecutionException,
             TimeoutException
Specified by:
get in interface Future<V>
Throws:
InterruptedException
ExecutionException
TimeoutException

getResponse

public abstract V getResponse(long timeout,
                              TimeUnit unit)
                       throws IOException
Throws:
IOException


Copyright © 2000-2013 FreeHEP. All Rights Reserved.