Package freenet.node

Examples of freenet.node.PrioRunnable


   
    public void delayedCheckpoint() {
        synchronized(sync) {
            if(killed || !enableCheckpointing) return;
            if(willCheck) return;
            ticker.queueTimedJob(new PrioRunnable() {
               
                @Override
                public void run() {
                    synchronized(sync) {
                        willCheck = false;
View Full Code Here


            willCheck = true;
        }
    }

    public void checkpointOffThread() {
        executor.execute(new PrioRunnable() {

            @Override
            public void run() {
                synchronized(sync) {
                    if(killed || !enableCheckpointing) {
View Full Code Here

        notifyAll();
        _ctr = null;
      }
      if(cb != null) {
        if(cb instanceof SlowAsyncMessageFilterCallback) {
          executor.execute(new PrioRunnable() {

          @Override
          public void run() {
            cb.onDisconnect(ctx);
          }
View Full Code Here

        notifyAll();
        _ctr = null;
      }
      if(cb != null) {
        if(cb instanceof SlowAsyncMessageFilterCallback) {
          executor.execute(new PrioRunnable() {

          @Override
          public void run() {
            cb.onRestarted(ctx);
          }
View Full Code Here

      if(_callback != null)
        clearMatched();
    }
    if(cb != null) {
      if(cb instanceof SlowAsyncMessageFilterCallback)
        executor.execute(new PrioRunnable() {

          @Override
          public void run() {
            cb.onMatched(msg);
          }
View Full Code Here

      notifyAll();
      cb = _callback;
    }
    if(cb != null) {
      if(cb instanceof SlowAsyncMessageFilterCallback) {
        executor.execute(new PrioRunnable() {

          @Override
          public void run() {
            cb.onTimeout();
          }
View Full Code Here

        private synchronized AtomicDependency[] dependencies() {
            return dependencies.toArray(new AtomicDependency[dependencies.size()]);
        }

        public void deployMultiFileUpdateOffThread() {
            executor.execute(new PrioRunnable() {

                @Override
                public void run() {
                    synchronized(NodeUpdateManager.deployLock()) {
                        if(deployMultiFileUpdate())
View Full Code Here

TOP

Related Classes of freenet.node.PrioRunnable

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.