Code example for ListenableFuture

Methods: get

0
      ExecutionException {
    // The first call to getPerUserWaveView() method causes the user's wavelets 
    // to be tracked. 
    provider.retrievePerUserWaveView(participant);
    ListenableFuture<Void> future = provider.onParticipantAdded(waveletName, participant);
    future.get();
  } 
 
  /** 
   * Factory method that creates the instance of {@link PerUserWaveViewHandler} to test. 
   */ 
  abstract protected PerUserWaveViewHandler createPerUserWaveViewHandler(); 
 
  /** 
   * Post update hook method that enables the subclasses to perform post update logic. 
   */ 
  abstract protected void postUpdateHook(); 
}