public IsolatedClientSession(ServerSession parent, ConnectionPolicy connectionPolicy) { super(parent, connectionPolicy); // PERF: Cache the write-lock check to avoid cost of checking in every register/clone. this.shouldCheckWriteLock = getDatasourceLogin().shouldSynchronizedReadOnWrite() || getDatasourceLogin().shouldSynchronizeWrites(); }
public IsolatedClientSession(ServerSession parent, ConnectionPolicy connectionPolicy, Map properties) { super(parent, connectionPolicy, properties); // PERF: Cache the write-lock check to avoid cost of checking in every register/clone. this.shouldCheckWriteLock = getDatasourceLogin().shouldSynchronizedReadOnWrite() || getDatasourceLogin().shouldSynchronizeWrites(); }
public IsolatedClientSession(ServerSession parent, ConnectionPolicy connectionPolicy, Map properties) { super(parent, connectionPolicy, properties); // PERF: Cache the write-lock check to avoid cost of checking in every register/clone. this.shouldCheckWriteLock = getDatasourceLogin().shouldSynchronizedReadOnWrite() || getDatasourceLogin().shouldSynchronizeWrites(); }
public IsolatedClientSession(ServerSession parent, ConnectionPolicy connectionPolicy) { super(parent, connectionPolicy); // PERF: Cache the write-lock check to avoid cost of checking in every register/clone. this.shouldCheckWriteLock = getDatasourceLogin().shouldSynchronizedReadOnWrite() || getDatasourceLogin().shouldSynchronizeWrites(); }
/** * Lock the entire cache if the cache isolation requires. * By default concurrent reads and writes are allowed. * By write, unit of work merge is meant. */ public boolean acquireWriteLock() { if (this.session.getDatasourceLogin().shouldSynchronizedReadOnWrite() || this.session.getDatasourceLogin().shouldSynchronizeWrites()) { getCacheMutex().acquire(); return true; } return false; }
/** * Lock the entire cache if the cache isolation requires. * By default concurrent reads and writes are allowed. * By write, unit of work merge is meant. */ public void releaseWriteLock() { if (this.session.getDatasourceLogin().shouldSynchronizedReadOnWrite() || this.session.getDatasourceLogin().shouldSynchronizeWrites()) { getCacheMutex().release(); } }
/** * Lock the entire cache if the cache isolation requires. * By default concurrent reads and writes are allowed. * By write, unit of work merge is meant. */ public boolean acquireWriteLock() { if (this.session.getDatasourceLogin().shouldSynchronizedReadOnWrite() || this.session.getDatasourceLogin().shouldSynchronizeWrites()) { getCacheMutex().acquire(); return true; } return false; }
/** * Lock the entire cache if the cache isolation requires. * By default concurrent reads and writes are allowed. * By write, unit of work merge is meant. */ public void releaseWriteLock() { if (this.session.getDatasourceLogin().shouldSynchronizedReadOnWrite() || this.session.getDatasourceLogin().shouldSynchronizeWrites()) { getCacheMutex().release(); } }
/** * Lock the entire cache if the cache isolation requires. * By default concurrent reads and writes are allowed. * By write, unit of work merge is meant. */ public void releaseWriteLock() { if (this.session.getDatasourceLogin().shouldSynchronizedReadOnWrite() || this.session.getDatasourceLogin().shouldSynchronizeWrites()) { getCacheMutex().release(); } }
/** * Lock the entire cache if the cache isolation requires. * By default concurrent reads and writes are allowed. * By write, unit of work merge is meant. */ public boolean acquireWriteLock() { if (getSession().getDatasourceLogin().shouldSynchronizedReadOnWrite() || getSession().getDatasourceLogin().shouldSynchronizeWrites()) { getCacheMutex().acquire(); return true; } return false; }
this.shouldCheckWriteLock = parent.getDatasourceLogin().shouldSynchronizedReadOnWrite() || parent.getDatasourceLogin().shouldSynchronizeWrites(); this.isNestedUnitOfWork = parent.isUnitOfWork();
incrementProfile(SessionProfiler.UowCreated); this.shouldCheckWriteLock = parent.getDatasourceLogin().shouldSynchronizedReadOnWrite() || parent.getDatasourceLogin().shouldSynchronizeWrites();
incrementProfile(SessionProfiler.UowCreated); this.shouldCheckWriteLock = parent.getDatasourceLogin().shouldSynchronizedReadOnWrite() || parent.getDatasourceLogin().shouldSynchronizeWrites();