Package freenet.node

Examples of freenet.node.SemiOrderedShutdownHook


      throw new IllegalArgumentException();
    this.callback = callback;
    this.maxSize = maxSize;
    this.period = period;
    this.backDatastore = backDatastore;
    SemiOrderedShutdownHook shutdownHook = SemiOrderedShutdownHook.get();
    this.blocksByRoutingKey = new TreeMap<ByteArrayWrapper, Block<T>>(ByteArrayWrapper.FAST_COMPARATOR);
    this.ticker = ticker;
    this.size = 0;
    this.startJob = false;
    this.collisionPossible = callback.collisionPossible();
    this.shuttingDown = false;
   
    callback.setStore(this);
   
    shutdownHook.addEarlyJob(new NativeThread("Close CachingFreenetStore", NativeThread.HIGH_PRIORITY, true) {
      @Override
      public void realRun() {
        innerClose(); // SaltedHashFS has its own shutdown job.
      }
    });
View Full Code Here

TOP

Related Classes of freenet.node.SemiOrderedShutdownHook

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.