This content has been marked as final.
Show 3 replies
-
1. Lifecycle methods use case?
dan.berindei Mar 31, 2011 12:41 PM (in response to amalrajvinoth)After you call stop() the cache manager is no longer usable, and you cannot revive it with start(). It is there only to provide deterministic resource cleanup, because you cannot rely on finalization for that.
The DefaultCacheManager javadoc has some use cases.
-
2. Lifecycle methods use case?
amalrajvinoth Apr 6, 2011 2:09 AM (in response to dan.berindei)Dan Berindei wrote:
After you call stop() the cache manager is no longer usable, and you cannot revive it with start(). It is there only to provide deterministic resource cleanup, because you cannot rely on finalization for that.
The DefaultCacheManager javadoc has some use cases.
then method name is misleading, is it correct?
-
3. Lifecycle methods use case?
dan.berindei Apr 6, 2011 3:16 AM (in response to amalrajvinoth)I wouldn't call it misleading, java.lang.Thread also has start() and stop() methods and you can't restart it either.