/** * Get all dependencies of this root artifact. * @return The list of artifacts */ @Cacheable(forever = true) @SuppressWarnings("unchecked") public Collection<Artifact> children() { return this.chldrn; }
final Cacheable annot = method.getAnnotation(Cacheable.class); synchronized (this.tunnels) { for (final Class<?> before : annot.before()) { final boolean flag = Boolean.class.cast( before.getMethod("flushBefore").invoke(method.getClass()) if (this.isCreateTunnel(tunnel)) { tunnel = new MethodCacher.Tunnel( point, key, annot.asyncUpdate() ); this.tunnels.put(key, tunnel); this.updatekeys.offer(key); for (final Class<?> after : annot.after()) { final boolean flag = Boolean.class.cast( after.getMethod("flushAfter").invoke(method.getClass())
final Cacheable annot = method.getAnnotation(Cacheable.class); final String suffix; if (annot.forever()) { this.lifetime = Long.MAX_VALUE; suffix = "valid forever"; } else if (annot.lifetime() == 0) { this.lifetime = 0L; suffix = "invalid immediately"; } else { final long msec = annot.unit().toMillis( (long) annot.lifetime() ); this.lifetime = start + msec;
final Cacheable annot = method.getAnnotation(Cacheable.class); synchronized (this.tunnels) { for (final Class<?> before : annot.before()) { final boolean flag = Boolean.class.cast( before.getMethod("flushBefore").invoke(method.getClass()) if (this.isCreateTunnel(tunnel)) { tunnel = new MethodCacher.Tunnel( point, key, annot.asyncUpdate() ); this.tunnels.put(key, tunnel); this.updatekeys.offer(key); for (final Class<?> after : annot.after()) { final boolean flag = Boolean.class.cast( after.getMethod("flushAfter").invoke(method.getClass())
final Cacheable annot = method.getAnnotation(Cacheable.class); final String suffix; if (annot.forever()) { this.lifetime = Long.MAX_VALUE; suffix = "valid forever"; } else if (annot.lifetime() == 0) { this.lifetime = 0L; suffix = "invalid immediately"; } else { final long msec = annot.unit().toMillis( (long) annot.lifetime() ); this.lifetime = start + msec;
@Override @Cacheable(lifetime = 1, unit = TimeUnit.HOURS) public Lock get(final String name) throws IOException { return this.origin.get(name); } }
@Override @Cacheable(lifetime = 1, unit = TimeUnit.HOURS) public Iterable<String> names() throws IOException { return this.origin.names(); }
@Override @Cacheable(lifetime = 1, unit = TimeUnit.HOURS) public Counter get(final String name) throws IOException { return this.origin.get(name); } }
@Override @Cacheable public URI photo() throws IOException { return this.origin.photo(); }
@Override @Cacheable public URI photo() throws IOException { return this.origin.photo(); }
@Override @Cacheable public void post(final String text) throws IOException { this.origin.post(text); }
@Override @Cacheable public Date date() throws IOException { return this.origin.date(); }
@Override @Cacheable public Date updated() throws IOException { return this.origin.updated(); }
@Override @Cacheable public Locale locale() throws IOException { return this.origin.locale(); }
@Override @Cacheable public String name() throws IOException { return this.origin.name(); }
@Override @Cacheable public long number() throws IOException { return this.origin.number(); }
@Override @Cacheable public String text() throws IOException { return this.origin.text(); }
@Override @Cacheable public boolean subscription() throws IOException { return this.origin.subscription(); }
@Override @Cacheable public String email() throws IOException { return this.origin.email(); }
@Override @Cacheable public String etag() throws IOException { return this.origin.etag(); }