If you are in imminent danger, call the police. If police concur that the threat of domestic violence is real and imminent, they can have a judge issue an emergency protective order that will last up to a week. Then your lawyer can help secure a temporary restraining order, which lasts for 20-25 days and is intended to keep you safe until the hearing. At the hearing, evidence of the need for long-term protection can be presented. If the evidence is persuasive, a judge may issue a permanent restraining order that can last as long as five years.