/** * {@inheritDoc} */ @Override public T get() throws UnresolvableInstanceException, InstanceUnavailableException { throw new UnresolvableInstanceException(this); }
/** * {@inheritDoc} */ @Override public T get() throws UnresolvableInstanceException, InstanceUnavailableException { try { return m_future.get(0, TimeUnit.SECONDS); } catch (InterruptedException e) { throw new UnresolvableInstanceException(this, e); } catch (ExecutionException e) { throw new UnresolvableInstanceException(this, e); } catch (TimeoutException e) { throw new UnresolvableInstanceException(this, e); } }
/** * {@inheritDoc} */ @Override public T get() throws UnresolvableInstanceException, InstanceUnavailableException { synchronized (this) { if (hasResult) { if (exception == null) { return result; } else { throw new UnresolvableInstanceException(this, exception); } } else { throw new InstanceUnavailableException(this); } } }
throw new UnresolvableInstanceException(this, e); throw new UnresolvableInstanceException(m_deferred, e); throw new UnresolvableInstanceException(m_deferred); throw new UnresolvableInstanceException(m_deferred);
throw new UnresolvableInstanceException(this, new NullPointerException("The underlying deferred was null")); throw new UnresolvableInstanceException(this, e); throw new UnresolvableInstanceException(this, e);
throw new UnresolvableInstanceException(this, e);
throw new UnresolvableInstanceException(this, e); throw new UnresolvableInstanceException(this, e);
@Override public Boolean get() throws UnresolvableInstanceException, InstanceUnavailableException { try { lastMatchedValue = deferred.get(); if (predicate.evaluate(lastMatchedValue)) { return true; } else { throw new InstanceUnavailableException(this); } } catch (InstanceUnavailableException e) { throw e; } catch (UnresolvableInstanceException e) { throw e; } catch (Exception e) { throw new UnresolvableInstanceException(this, e); } }
/** * {@inheritDoc} */ @Override public Set<ObjectInstance> queryMBeans(ObjectName name, QueryExp query) { try { return ensured(getDeferredJMXConnector(), getDefaultTimeout(), getDefaultTimeoutUnits()).get().getMBeanServerConnection().queryMBeans(name, query); } catch (IOException e) { throw new UnresolvableInstanceException(getDeferredJMXConnector(), e); } }
throw new UnresolvableInstanceException(this, e);
throw new UnresolvableInstanceException(this, e);
throw new UnresolvableInstanceException(this, e);