Package ch.ethz.inf.vs.californium.network.config

Examples of ch.ethz.inf.vs.californium.network.config.NetworkConfigObserverAdapter


  public BlockwiseLayer(NetworkConfig config) {
    this.maxMsgSize = config.getInt(NetworkConfigDefaults.MAX_MESSAGE_SIZE);
    this.defaultBlockSize = config.getInt(NetworkConfigDefaults.DEFAULT_BLOCK_SIZE);
    LOGGER.config("Blockwise14 layer uses MAX_MESSAGE_SIZE: "+maxMsgSize+" and DEFAULT_BLOCK_SIZE:"+defaultBlockSize);
   
    config.addConfigObserver(new NetworkConfigObserverAdapter() {
      @Override
      public void changed(String key, int value) {
        if (NetworkConfigDefaults.MAX_MESSAGE_SIZE.equals(key))
          maxMsgSize = value;
        if (NetworkConfigDefaults.DEFAULT_BLOCK_SIZE.equals(key))
View Full Code Here

TOP

Related Classes of ch.ethz.inf.vs.californium.network.config.NetworkConfigObserverAdapter

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.