@Deprecated
    @SuppressWarnings("deprecation")
    @Nullable
    public ServerAddress getAddress() {
        ClusterDescription description = getClusterDescription();
        if (description.getPrimaries().isEmpty()) {
            return null;
        }
        return description.getPrimaries().get(0).getAddress();
    }
@Deprecated
    @SuppressWarnings("deprecation")
    @Nullable
    public ServerAddress getAddress() {
        ClusterDescription description = getClusterDescription();
        if (description.getPrimaries().isEmpty()) {
            return null;
        }
        return description.getPrimaries().get(0).getAddress();
    }
@ Deprecated @ SuppressWarnings ( "deprecation" ) @ Nullable public ServerAddress getAddress ( ) { ClusterDescription description = getClusterDescription ( ) ; if ( description . getPrimaries ( ) . isEmpty ( ) ) { return null ; } return description . getPrimaries ( ) . get ( 0 ) . getAddress ( ) ; }
Gets the address of the current master

@return the address
Gets the address of the current master