Skip to content

Commit 6803fff

Browse files
committed
Allow override of destruction.
1 parent 6e33981 commit 6803fff

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

core/src/main/java/ch/cyberduck/core/ExpiringObjectHolder.java

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -40,6 +40,15 @@ public T get() {
4040
return object;
4141
}
4242
log.warn("Expired object {}", object);
43+
return this.expire();
44+
}
45+
46+
public T expire() {
47+
this.destroy(object);
4348
return object = null;
4449
}
50+
51+
protected void destroy(final Object object) {
52+
//
53+
}
4554
}

0 commit comments

Comments
 (0)