Very likely an abscess, if your dentist is shut contact your GP and get some anti-biotics prescribed that will kill the infection and take away the pain usually in less than 24 hours. Long term will likely need root canal treatment to prevent re-infection, in the meantime keep taking analgesics for pain relief.
Richard