INT-2046 added @ManagedAttribute to MessageStores

Added to the getMessageCount() in GemfireMessageStore, MongoDbMessageStore, and RedisMessageStore.
This commit is contained in:
Mark Fisher
2011-08-11 13:59:12 -04:00
parent bce562368c
commit da2f275074
3 changed files with 7 additions and 3 deletions

View File

@@ -20,6 +20,7 @@ import java.util.UUID;
import org.springframework.integration.Message;
import org.springframework.integration.store.MessageStore;
import org.springframework.jmx.export.annotation.ManagedAttribute;
import org.springframework.util.Assert;
import com.gemstone.gemfire.cache.Region;
@@ -50,6 +51,7 @@ public class GemfireMessageStore implements MessageStore {
return this.region.remove(id);
}
@ManagedAttribute
public long getMessageCount() {
return this.region.size();
}