1 /* 2 * ReadWriteLock.java 3 * 4 * Created on 25. Juli 2006, 20:14 5 */ 6 /* 7 * Copyright 2006 Schlichtherle IT Services 8 * 9 * Licensed under the Apache License, Version 2.0 (the "License"); 10 * you may not use this file except in compliance with the License. 11 * You may obtain a copy of the License at 12 * 13 * http://www.apache.org/licenses/LICENSE-2.0 14 * 15 * Unless required by applicable law or agreed to in writing, software 16 * distributed under the License is distributed on an "AS IS" BASIS, 17 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 18 * See the License for the specific language governing permissions and 19 * limitations under the License. 20 */ 21 22 package de.schlichtherle.io; 23 24 /** 25 * Similar to <code>java.util.concurrent.locks.ReadWriteLock</code>, 26 * but uses the simplified {@link ReentrantLock} interface. 27 * 28 * 29 * @author Christian Schlichtherle 30 * @version @version@ 31 * @since TrueZIP 6.2 32 */ 33 interface ReadWriteLock { 34 35 /** 36 * Returns the lock for reading. 37 */ 38 ReentrantLock readLock(); 39 40 /** 41 * Returns the lock for writing. 42 */ 43 ReentrantLock writeLock(); 44 } 45