/** * This method should be called before the resource is used. * * @throws ShutdownException once {@see shutdown} has been called. */ public void retain() { if(!attemptRetain()) { throw new ShutdownException(); // fail the attempt at retaining. } }
/** * This method should be called before the resource is used. * * @throws ShutdownException once {@see shutdown} has been called. */ public void retain() { if(!attemptRetain()) { throw new ShutdownException(); // fail the attempt at retaining. } }