public interface JarFuture
The future of a transaction that stores a jar in a node.
-
Method Summary
Modifier and TypeMethodDescriptionget()Waits if necessary for the transaction to complete, and then retrieves its result.Yields the reference of the request of the transaction.
-
Method Details
-
getReferenceOfRequest
TransactionReference getReferenceOfRequest()Yields the reference of the request of the transaction.- Returns:
- the reference
-
get
TransactionReference get() throws TransactionRejectedException, TransactionException, ClosedNodeException, TimeoutException, InterruptedExceptionWaits if necessary for the transaction to complete, and then retrieves its result.- Returns:
- the reference to the transaction, that can be used to refer to the jar in a class path or as future dependency of other jars
- Throws:
TransactionRejectedException- if the transaction could not be executed and the store of the node remained unchangedTransactionException- if the transaction could be executed and the store of the node has been expanded with a failed transactionClosedNodeException- if the node is already closedTimeoutException- if no answer arrives before a time windowInterruptedException- if the current thread is interrupted while waiting for an answer to arrive
-