jclouds-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Andrew Phillips <notificati...@github.com>
Subject Re: [jclouds] JCLOUDS-127 (#32)
Date Mon, 17 Jun 2013 13:01:44 GMT
> @@ -35,14 +36,33 @@
>     // guice is single threaded. no need to lock this
>     List<Closeable> methodsToClose = Lists.<Closeable> newArrayList();
>  
> +   public enum State {
> +      OPEN,
> +      CLOSING,
> +      CLOSED
> +   }
> +
> +   private final AtomicReference<State> state;
> +
> +   public Closer() {
> +      this.state = new AtomicReference<State>(State.OPEN);

Small style comment: perhaps also import `State.*` here, if that's possible (perhaps not,
since it's declared in this class)?

---
Reply to this email directly or view it on GitHub:
https://github.com/jclouds/jclouds/pull/32/files#r4723349

Mime
  • Unnamed multipart/alternative (inline, 7-Bit, 0 bytes)
View raw message