private void setBatchSize(Object value)
    {
        if (value instanceof Integer)
        {
            this.mongoDBClient.setBatchSize((Integer) value);
        }
        else if (value instanceof String)
        {
            this.mongoDBClient.setBatchSize(Integer.valueOf((String) value));
        }
    }
private void setBatchSize ( Object value ) { if ( value instanceof Integer ) { this . mongoDBClient . setBatchSize ( ( Integer ) value ) ; } else if ( value instanceof String ) { this . mongoDBClient . setBatchSize ( Integer . valueOf ( ( String ) value ) ) ; } }
set batch size.

@param value
the new batch size