Examples of BooleanCallback


Examples of freenet.support.api.BooleanCallback

        transitionExtJarFile, node.clientCore,
        legacyFetcherCallback);

    updaterConfig.register("updateSeednodes", wasEnabledOnStartup, 6, true,
        true, "NodeUpdateManager.updateSeednodes",
        "NodeUpdateManager.updateSeednodesLong", new BooleanCallback() {

          @Override
          public Boolean get() {
            return updateSeednodes;
          }

          @Override
          public void set(Boolean val)
              throws InvalidConfigValueException,
              NodeNeedRestartException {
            if (updateSeednodes == val)
              return;
            updateSeednodes = val;
            if (val)
              throw new NodeNeedRestartException(
                  "Must restart to fetch the seednodes");
            else
              throw new NodeNeedRestartException(
                  "Must restart to stop the seednodes fetch if it is still running");
          }

        });

    updateSeednodes = updaterConfig.getBoolean("updateSeednodes");

    updaterConfig.register("updateInstallers", wasEnabledOnStartup, 6,
        true, true, "NodeUpdateManager.updateInstallers",
        "NodeUpdateManager.updateInstallersLong",
        new BooleanCallback() {

          @Override
          public Boolean get() {
            return updateInstallers;
          }
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.