[infinispan-dev] Adding isRunning() to Lifecycle?

Manik Surtani manik at jboss.org
Fri Dec 4 16:06:24 EST 2009


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 at lists.jboss.org
> https://lists.jboss.org/mailman/listinfo/infinispan-dev

--
Manik Surtani
manik at jboss.org
Lead, Infinispan
Lead, JBoss Cache
http://www.infinispan.org
http://www.jbosscache.org








More information about the infinispan-dev mailing list