[infinispan-dev] Adding isRunning() to Lifecycle?
Sanne Grinovero
sanne.grinovero at gmail.com
Fri Dec 4 19:39:41 EST 2009
2009/12/4 Manik Surtani <manik at jboss.org>:
> cache.getStatus().allowInvocations() ?
ah thanks, that's even better!
Sanne
>
> 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
>
>
>
>
>
> _______________________________________________
> infinispan-dev mailing list
> infinispan-dev at lists.jboss.org
> https://lists.jboss.org/mailman/listinfo/infinispan-dev
>
More information about the infinispan-dev
mailing list