cache.getStatus().allowInvocations() ?
On 4 Dec 2009, at 18:26, Sanne Grinovero wrote:
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
_______________________________________________
infinispan-dev mailing list
infinispan-dev(a)lists.jboss.org
https://lists.jboss.org/mailman/listinfo/infinispan-dev
--
Manik Surtani
manik(a)jboss.org
Lead, Infinispan
Lead, JBoss Cache
http://www.infinispan.org
http://www.jbosscache.org