public boolean isCapped ( ) { CommandResult commandResult = getStats ( ) ; Object cappedField = commandResult . get ( "capped" ) ; return cappedField != null && ( cappedField . equals ( 1 ) || cappedField . equals ( true ) ) ; }
Checks whether this collection is capped