Eligibility depends on the case. Sometimes the defense attorney and prosecutor negotiate a deal that includes a stay of adjudication. Sometimes the judge grants it on his/her own authority. Sometimes the right to a stay of adjudication is written into the law itself.