Class JoinedResults

java.lang.Object
com.spotify.futures.JoinedResults

public final class JoinedResults extends Object
Contains references to a set of joined future values.
  • Nested Class Summary

    Nested Classes
    Modifier and Type
    Class
    Description
    private static enum 
     
    (package private) static class 
     
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    private final Map<com.google.common.util.concurrent.ListenableFuture<?>,Object>
     
  • Constructor Summary

    Constructors
    Modifier
    Constructor
    Description
    private
    JoinedResults(Map<com.google.common.util.concurrent.ListenableFuture<?>,Object> futures)
     
  • Method Summary

    Modifier and Type
    Method
    Description
    <T> T
    get(com.google.common.util.concurrent.ListenableFuture<T> future)
    Gets a future value if it was part of the joined future values, else throws an illegal argument exception.

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Field Details

    • futures

      private final Map<com.google.common.util.concurrent.ListenableFuture<?>,Object> futures
  • Constructor Details

    • JoinedResults

      private JoinedResults(Map<com.google.common.util.concurrent.ListenableFuture<?>,Object> futures)
  • Method Details

    • get

      public <T> T get(com.google.common.util.concurrent.ListenableFuture<T> future)
      Gets a future value if it was part of the joined future values, else throws an illegal argument exception.