@Test(timeout = 90000) public void testTimedSync() { ProviderFuture future = futuresFactory.createFuture(); try { assertFalse(future.sync(1, TimeUnit.SECONDS)); } catch (Exception cause) { fail("Should throw an error"); } }
public abstract void sync() throws ProviderException;
ProviderFuture implements AsyncResult { public abstract void sync() throws ProviderException; }
ProviderFuture implements AsyncResult { public abstract void sync() throws ProviderException; ProviderFuture();  ProviderFuture(ProviderSynchronization synchronization); }
ProviderFuture implements AsyncResult { public abstract void sync() throws ProviderException; ProviderFuture();  ProviderFuture(ProviderSynchronization synchronization); @Override boolean isComplete(); @Override void onFailure(ProviderException result); @Override void onSuccess(); abstract void sync(); abstract boolean sync(long amount, TimeUnit unit); }
ProviderFuture implements AsyncResult { public abstract void sync() throws ProviderException; ProviderFuture();  ProviderFuture(ProviderSynchronization synchronization); @Override boolean isComplete(); @Override void onFailure(ProviderException result); @Override void onSuccess(); abstract void sync(); abstract boolean sync(long amount, TimeUnit unit);  }