In 2 Samuel 16:10-12, Shimei was very abusive toward David and his followers, yet David quietly tolerated the abuse and maintained his patience. David knew that instead of being provoked by the malice and falsehood of Shimei, he had to maintain a humble spirit, which in this case will turn criticism into shame, and that God will bring good out of his affliction. Romans 8:28 states that God works out all things for our good, not necessarily the way we want it, but to fulfill His purpose and our long range good. What is His purpose? “…..to be conformed to the image of his Son” (Romans 8:29)
Practicing self-control throughout needless criticism can be a tiresome experience and very exhausting, my advice, just ignore them, God will defend you against attacks and criticism if you are in the right.
As Christians we learn to accept pain and persecution, knowing that God is with us, all we have to do is read and study His Word, spend time in prayer, and do His work.
Maintaining your composer during times of persecution demonstrates to others who you are in Christ.