private void acquireLocksOnEntries ( final OMMapBufferEntry [ ] entries , OPERATION_TYPE operationType ) { if ( operationType == OPERATION_TYPE . WRITE ) for ( OMMapBufferEntry entry : entries ) { entry . acquireWriteLock ( ) ; entry . setDirty ( ) ; } else for ( OMMapBufferEntry entry : entries ) entry . acquireReadLock ( ) ; }
Locks all entries .