[infinispan-dev] Adding isRunning() to Lifecycle?
Sanne Grinovero
sanne.grinovero at gmail.com
Fri Dec 4 13:26:51 EST 2009
Hello,
what would you think of adding an isRunning() method to Lifecycle interface?
public interface Lifecycle {
void start();
void stop();
boolean isRunning(); <-- not existing
}
?
I would use it to throw easy to understand errors, like when trying to
use a cache which was shutdown.
I'm doing it already but code isn't nice and repeated in some places.
Sanne
More information about the infinispan-dev
mailing list