Methods Summary |
---|
public void | acquireReference()
synchronized(mLock) {
if (mReferenceCount <= 0) {
throw new IllegalStateException(
"attempt to acquire a reference on a close SQLiteClosable");
}
mReferenceCount++;
}
|
protected abstract void | onAllReferencesReleased()
|
protected void | onAllReferencesReleasedFromContainer()
|
public void | releaseReference()
synchronized(mLock) {
mReferenceCount--;
if (mReferenceCount == 0) {
onAllReferencesReleased();
}
}
|
public void | releaseReferenceFromContainer()
synchronized(mLock) {
mReferenceCount--;
if (mReferenceCount == 0) {
onAllReferencesReleasedFromContainer();
}
}
|