Lock blockLock = block.getWriteLock();
blockLock.tryLock(_timeout, TimeUnit.MILLISECONDS);
try {
Lock rightLock = rightBlock.getWriteLock();
rightLock.tryLock(_timeout, TimeUnit.MILLISECONDS);
try {
int length = getLength(buffer);
int rightLength = getLength(rightBuffer);