Package org.menagerie.locks

Examples of org.menagerie.locks.ReentrantZkReadWriteLock$WriteLock


            this.bucketNode = bucketNode;
            this.sessionManager = sessionManager;
            this.nodePrivileges = nodePrivileges;
            this.serializer = serializer;

            safety = new ReentrantZkReadWriteLock(bucketNode,sessionManager,nodePrivileges);
        }
View Full Code Here


    private final List<ACL> privileges;
    private final Serializer<T> serializer;
    private final ReadWriteLock safety;

    public ZkListSet(String baseNode, ZkSessionManager sessionManager, List<ACL> privileges, Serializer<T> serializer){
        this(baseNode,sessionManager,privileges,serializer,new ReentrantZkReadWriteLock(baseNode,sessionManager,privileges));
    }
View Full Code Here

         * @param serializer       the serializer to use to serialize entries
         */
        protected QueueSync(String baseNode, ZkSessionManager zkSessionManager, List<ACL> privileges, Serializer<E> serializer) {
            super(baseNode, zkSessionManager, privileges);
            this.serializer = serializer;
            headLock = new ReentrantZkReadWriteLock(baseNode,zkSessionManager,privileges);
        }
View Full Code Here

         * @param serializer       the serializer to use
         */
        protected UnboundedSync(String baseNode, ZkSessionManager zkSessionManager,
                                List<ACL> privileges, Serializer<E> serializer) {
            super(baseNode, zkSessionManager, privileges, serializer);
            headLock = new ReentrantZkReadWriteLock(baseNode,zkSessionManager,privileges);
        }
View Full Code Here

TOP

Related Classes of org.menagerie.locks.ReentrantZkReadWriteLock$WriteLock

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.