org.glassfish.tyrus
Class FutureSendResult

java.lang.Object
  extended by org.glassfish.tyrus.FutureSendResult
All Implemented Interfaces:
Future<SendResult>

public class FutureSendResult
extends Object
implements Future<SendResult>

Implementation of Future for SendResults. Currently this does not support cancelling the operations but it may in the future.

Author:
Danny Coward (danny.coward at oracle.com), Martin Matula (martin.matula at oracle.com)

Constructor Summary
FutureSendResult()
           
 
Method Summary
 boolean cancel(boolean mayInterruptIfRunning)
           
 SendResult get()
           
 SendResult get(long timeout, TimeUnit unit)
           
 boolean isCancelled()
           
 boolean isDone()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

FutureSendResult

public FutureSendResult()
Method Detail

cancel

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

isCancelled

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

isDone

public boolean isDone()
Specified by:
isDone in interface Future<SendResult>

get

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

get

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


Copyright © 2012. All Rights Reserved.