This is unfortunately a common issue and I'm sorry you went through this. This man's words and actions are all saying that he is not interested. The best thing to do in my opinion is immediately disconnect in every possible way from him. For example, don't look at any of his social media and don't try to communicate with him in any way. And then move your thinking onto bigger and better things for the future. Even though we might have strong feelings for someone, ultimately they have the freedom to choose whether they want to be with us or not.
When two people sleep together and then one person decides that this will be the end of the relationship it is usually because it was all they wanted. They don't feel the same type of chemistry that makes them want a long-term relationship. But a person knows before they sleep with someone if they want to be with them long-term. It is best to know what someone's intentions are towards you before you are intimate. For example, does he talk about the future with you two in any way? Does he want to take you out on dates? Does he want you to meet his friends or family? etc.
Do not let this person's actions upset you too long. You can not always predict how someone will act. Protect yourself the best you can.