Class MessagesStats
- java.lang.Object
-
- org.jclouds.openstack.marconi.v1.domain.MessagesStats
-
public class MessagesStats extends Object
Statistics on messages in this queue.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
MessagesStats.Builder
-
Constructor Summary
Constructors Modifier Constructor Description protected
MessagesStats(int claimed, int free, int total, Aged oldest, Aged newest)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static MessagesStats.Builder
builder()
boolean
equals(Object obj)
int
getClaimed()
int
getFree()
com.google.common.base.Optional<Aged>
getNewest()
com.google.common.base.Optional<Aged>
getOldest()
int
getTotal()
int
hashCode()
protected com.google.common.base.MoreObjects.ToStringHelper
string()
MessagesStats.Builder
toBuilder()
String
toString()
-
-
-
Constructor Detail
-
MessagesStats
@ConstructorProperties({"claimed","free","total","oldest","newest"}) protected MessagesStats(int claimed, int free, int total, @Nullable Aged oldest, @Nullable Aged newest)
-
-
Method Detail
-
getClaimed
public int getClaimed()
- Returns:
- The number of claimed messages in this queue.
-
getFree
public int getFree()
- Returns:
- The number of free messages in this queue.
-
getTotal
public int getTotal()
- Returns:
- The total number of messages in this queue.
-
getOldest
public com.google.common.base.Optional<Aged> getOldest()
- Returns:
- Statistics on the oldest messages in this queue. If the value of total is 0, then oldest is not present.
-
getNewest
public com.google.common.base.Optional<Aged> getNewest()
- Returns:
- Statistics on the newest messages in this queue. If the value of total is 0, then newest is not present.
-
string
protected com.google.common.base.MoreObjects.ToStringHelper string()
-
builder
public static MessagesStats.Builder builder()
-
toBuilder
public MessagesStats.Builder toBuilder()
-
-