A Brooklyn man who terrified customers of his online eyewear store with threats of violence, including rape, was sentenced on Thursday to four years in federal prison and ordered to pay nearly $100,000 in restitution and fines.