@Override public void succeeded() { if (succeeded != null) { succeeded.call(); } }
@Override public R call() { action.call(); return result; } };
@Override public R call() { action.call(); return result; } };
@Override public R call() { action.call(); return result; } };
@Override public void succeeded() { if (succeeded != null) { succeeded.call(); } }
public void succeeded() { succeeded.call(); } });
public void succeeded() { succeeded.call(); } });
public void succeeded() { succeeded.call(); } });
public void succeeded() { succeeded.call(); } });
@Override public Void call(Object... args) { if (args.length != 0) { throw new RuntimeException("Action0 expecting 0 arguments."); } f.call(); return null; }
@Override public Void call(Object... args) { if (args.length != 0) { throw new RuntimeException("Action0 expecting 0 arguments."); } f.call(); return null; }
@Override public Void call(Object... args) { if (args.length != 0) { throw new RuntimeException("Action0 expecting 0 arguments."); } f.call(); return null; }
public void lock(Action0 action0) { try (Lock lock = lock()) { action0.call(); } }
public void lock(Action0 action0) { try (Lock lock = lock()) { action0.call(); } }
public void lock(Action0 action0) { lock(); try { action0.call(); ; } finally { unlock(); } }
public void lock(Action0 action0) { lock(); try { action0.call(); ; } finally { unlock(); } }
public void lock(Action0 action0) { lock(); try { action0.call(); ; } finally { unlock(); } }
public void lock(Action0 action0) { lock(); try { action0.call(); ; } finally { unlock(); } }
public PooledObject(T object, Pool<T> pool, Action0 leakCallback) { this.object = object; this.pool = pool; this.leakCallback = leakCallback; createTime = Millisecond100Clock.currentTimeMillis(); activeTime = createTime; phantomReference = pool.getLeakDetector().register(this, () -> { pool.decreaseCreatedObjectSize(); leakCallback.call(); }); }
public PooledObject(T object, Pool<T> pool, Action0 leakCallback) { this.object = object; this.pool = pool; this.leakCallback = leakCallback; createTime = Millisecond100Clock.currentTimeMillis(); activeTime = createTime; phantomReference = pool.getLeakDetector().register(this, () -> { pool.decreaseCreatedObjectSize(); leakCallback.call(); }); }