org.glassfish.tyrus
Class FutureSendResult
java.lang.Object
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)
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
FutureSendResult
public FutureSendResult()
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.