Examples of SynchronizedLRUMap


Examples of org.apache.directory.shared.util.SynchronizedLRUMap

     */
    public void init( SchemaManager schemaManager, AttributeType attributeType ) throws IOException
    {
        LOG.debug( "Initializing an Index for attribute '{}'", attributeType.getName() );
       
        keyCache = new SynchronizedLRUMap( cacheSize );
        this.attributeType = attributeType;

        if ( attributeId == null )
        {
            setAttributeId( attributeType.getName() );
View Full Code Here

Examples of org.apache.directory.shared.util.SynchronizedLRUMap

        {
            throw new IllegalArgumentException( I18n.err( I18n.ERR_592 ) );
        }

        // TODO make the size of the duplicate btree cache configurable via constructor
        duplicateBtrees = new SynchronizedLRUMap( 100 );

        if ( valueSerializer != null )
        {
            marshaller = new ArrayMarshaller<V>( valueComparator,
                    new MarshallerSerializerBridge<V>( valueSerializer ) );
View Full Code Here

Examples of org.apache.directory.shared.util.SynchronizedLRUMap

        {
            throw new IllegalArgumentException( I18n.err( I18n.ERR_592 ) );
        }

        // TODO make the size of the duplicate btree cache configurable via constructor
        duplicateBtrees = new SynchronizedLRUMap( 100 );

        if ( valueSerializer != null )
        {
            marshaller = new ArrayMarshaller<V>( valueComparator,
                new MarshallerSerializerBridge<V>( valueSerializer ) );
View Full Code Here

Examples of org.apache.directory.shared.util.SynchronizedLRUMap

     */
    public void init( SchemaManager schemaManager, AttributeType attributeType ) throws IOException
    {
        LOG.debug( "Initializing an Index for attribute '{}'", attributeType.getName() );
       
        keyCache = new SynchronizedLRUMap( cacheSize );
        this.attributeType = attributeType;

        if ( attributeId == null )
        {
            setAttributeId( attributeType.getName() );
View Full Code Here

Examples of org.apache.directory.shared.util.SynchronizedLRUMap

    {
        LOG.debug( "Initializing an Index for attribute '{}'", attributeType.getName() );
       
        //System.out.println( "IDX Initializing RDNindex for AT " + attributeType.getOid() + ", wkDirPath : " + wkDirPath + ", base dir : " + this.wkDirPath );

        keyCache = new SynchronizedLRUMap( cacheSize );
        this.attributeType = attributeType;

        if ( attributeId == null )
        {
            setAttributeId( attributeType.getName() );
View Full Code Here

Examples of org.apache.directory.shared.util.SynchronizedLRUMap

        throws IOException
    {
        this.schemaManager = schemaManager;

        // TODO make the size of the duplicate btree cache configurable via constructor
        duplicateBtrees = new SynchronizedLRUMap( 100 );

        if ( valueSerializer != null )
        {
            marshaller = new ArrayMarshaller<V>( valueComparator,
                    new MarshallerSerializerBridge<V>( valueSerializer ) );
View Full Code Here

Examples of org.jboss.dashboard.database.cache.custom.map.SynchronizedLRUMap

     */
    private final SynchronizedLRUMap cache;

    public TimerCache(boolean monitorizeCaches, long timeout, int size) {
        this.timeout = timeout;
        cache = new SynchronizedLRUMap(size);
        thread = new Thread(this);
        thread.start();
        if (monitorizeCaches)
            this.cacheMonitor = new CacheMonitor(size);
    }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.