Şöyle yaparız
//Provides locking semantics for CDI Beans – especially useful for ApplicationScoped//Semantics would be similar to EJB Locks@ApplicationScopedpublic class CDIBean {@Lock(LockType.READ)public void doReadMany(){}@Lock(LockType.WRITE)public void doOneWriter() {}}
Hiç yorum yok:
Yorum Gönder