> +import org.jclouds.javax.annotation.Nullable;
> +
> +import java.beans.ConstructorProperties;
> +
> +/**
> + * Statistics on messages in this queue.
> + *
> + * @author Everett Toews
> + */
> +public class MessagesStats {
> +
> + private int claimed;
> + private int free;
> + private int total;
> + private Optional<Aged> oldest;
> + private Optional<Aged> newest;
This might not be the use case, but if at some point we need to serialize this
object to JSON, how would this field be serialized? Could it be more consistent
to remove the Optional from the field declaration and apply the
`Optional.fromNullable` on the getters?
---
Reply to this email directly or view it on GitHub:
https://github.com/jclouds/jclouds-labs-openstack/pull/43/files#r7047963