@ SuppressWarnings ( "deprecation" ) @ Nullable public String getName ( ) { List < ServerDescription > any = getClusterDescription ( ) . getAnyPrimaryOrSecondary ( ) ; return any . isEmpty ( ) ? null : any . get ( 0 ) . getSetName ( ) ; }
Get the name of the replica set .