Package xbird.util.concurrent.cache

Examples of xbird.util.concurrent.cache.ConcurrentLongCache


        private final boolean _tranfered;
        private final AtomicInteger _refcount = new AtomicInteger(1);

        public PagedStringChunk() {//Externalizable
            super();
            this._cache = new ConcurrentLongCache(STR_CHUNK_CACHES);
            this._tranfered = true;
            this.spwritten = 0;
            this.ccwritten = 0;
        }
View Full Code Here


        }

        public PagedStringChunk(VarSegments paged, int strPoolWritten, int charChunkWritten) {
            super();
            this._paged = paged;
            this._cache = new ConcurrentLongCache(STR_CHUNK_CACHES);
            this._tranfered = false;
            this.spwritten = strPoolWritten;
            this.ccwritten = charChunkWritten;
        }
View Full Code Here

    public DiskPagedLongCache(File file, int cacheSize, Codec<V> codec) {
        if(!file.exists()) {
            throw new IllegalStateException("File does not exists: " + file.getAbsolutePath());
        }
        this.paged = new VarSegments(file, cacheSize);
        this.internalCache = new ConcurrentLongCache(cacheSize, this);
        this.codec = codec;
    }
View Full Code Here

        private final boolean _tranfered;
        private final AtomicInteger _refcount = new AtomicInteger(1);

        public PagedStringChunk() {//Externalizable
            super();
            this._cache = new ConcurrentLongCache(STR_CHUNK_CACHES);
            this._tranfered = true;
            this.spwritten = 0;
            this.ccwritten = 0;
        }
View Full Code Here

        }

        public PagedStringChunk(VarSegments paged, int strPoolWritten, int charChunkWritten) {
            super();
            this._paged = paged;
            this._cache = new ConcurrentLongCache(STR_CHUNK_CACHES);
            this._tranfered = false;
            this.spwritten = strPoolWritten;
            this.ccwritten = charChunkWritten;
        }
View Full Code Here

    public DiskPagedLongCache(File file, int cacheSize, Codec<V> codec) {
        if(!file.exists()) {
            throw new IllegalStateException("File does not exists: " + file.getAbsolutePath());
        }
        this.paged = new VarSegments(file, cacheSize);
        this.internalCache = new ConcurrentLongCache(cacheSize, this);
        this.codec = codec;
    }
View Full Code Here

TOP

Related Classes of xbird.util.concurrent.cache.ConcurrentLongCache

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.