Package javax.util.jcache

Examples of javax.util.jcache.DiskCacheException


            if (!alive) {
                return null;
            }
            return readElement(key);
        } catch (InterruptedException e) {
            throw new DiskCacheException("The read was interrupted.");
        } finally {
            storageLock.readLock().release();
        }
    }
View Full Code Here


        DiskElementDescriptor ded = (DiskElementDescriptor) keyHash.get(key);
        if (ded != null) {
            Serializable readObject = dataFile.readObject(ded.pos);
      return ((DiskCacheObject) readObject).getCacheObject();
        }
        throw new DiskCacheException("The object " + key
            + " was not found in the diskCache.");
    }
View Full Code Here

    public synchronized void append(byte[] data) throws DiskCacheException {
        try {
            write(data, raf.length());
        } catch (IOException e) {
            throw new DiskCacheException(e);
        }
    }
View Full Code Here

TOP

Related Classes of javax.util.jcache.DiskCacheException

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.