ignite-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Pavel Tupitsyn <ptupit...@apache.org>
Subject Re: [DISCUSS] Add flag methods to ClusterState enum
Date Wed, 10 Jun 2020 16:02:44 GMT
Sergey,

I disagree - looks weird.
We have lots of enums, is this one special in some way?

Thanks,
Pavel

On Wed, Jun 10, 2020 at 6:58 PM Sergey Antonov <antonovsergey93@gmail.com>
wrote:

> Igniters, I'd like to propose a small improvement in ClusterState class. I
> want to remove the static method boolean ClusterState#active and add
> methods to the enum:
>
>    - boolean active()
>    - boolean readOnly()
>    - boolean inactive()
>
> From my point of view these methods more useful than comparing with
> specific enum's value.
>
> I'm going to do that on the ticket [1].
>
> Any objections?
>
> [1] https://issues.apache.org/jira/browse/IGNITE-13144
> --
> BR, Sergey Antonov
>

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message