Examples of runSafe()


Examples of com.barchart.feed.base.market.api.MarketDo.runSafe()

    if (!isValid(market)) {
      register(instrument);
      market = marketMap.get(instrument.id());
    }

    market.runSafe(safeMake, message);

  }

  protected MarketSafeRunner<Void, Message> safeMake = new MarketSafeRunner<Void, Message>() {
    @Override
View Full Code Here

Examples of com.barchart.feed.base.market.api.MarketDo.runSafe()

    if(!valid) {
      register(instrument);
      market = marketMap.get(instrument.id());
    }

    market.runSafe(safeMake, message);
   
    /* Below is a hack to keep the subscriptions updated */
    /* If a new market is created, a new subscription is made,
     * but it needs the State enum from market which should
     * get set on the first market snapshot, which is why
View Full Code Here

Examples of com.barchart.feed.base.market.api.MarketDo.runSafe()

    if (market == null) {
      return MarketConst.NULL_MARKET.get(field).freeze();
    }

    return (V) market.runSafe(safeTake, field);
  }
 
  private final MarketSafeRunner<Value<?>, MarketField<?>> safeTake =
      new MarketSafeRunner<Value<?>, MarketField<?>>() {
   
View Full Code Here

Examples of com.barchart.feed.base.market.api.MarketDo.runSafe()

    if (market == null) {
      return MarketConst.NULL_MARKET.get(field).freeze();
    }

    return (V) market.runSafe(safeTake, field);

  }

  private final MarketSafeRunner<Value<?>, MarketField<?>> safeTake =
      new MarketSafeRunner<Value<?>, MarketField<?>>() {
View Full Code Here

Examples of com.barchart.feed.base.market.api.MarketDo.runSafe()

          register(inst);
        }

        final MarketDo market = marketMap.get(inst);

        market.runSafe(safeRegister, regTaker);

        ms.add(market);

      }
     
View Full Code Here

Examples of com.barchart.feed.base.market.api.MarketDo.runSafe()

    /** unregister : based on past */
    for (final Instrument inst : unregisterSet) {

      final MarketDo market = marketMap.get(inst);

      market.runSafe(safeUnregister, regTaker);

    }

    /** update : based on merge of next and past */
    for (final Instrument inst : updateSet) {
View Full Code Here

Examples of com.barchart.feed.base.market.api.MarketDo.runSafe()

    /** update : based on merge of next and past */
    for (final Instrument inst : updateSet) {

      final MarketDo market = marketMap.get(inst);

      market.runSafe(safeUpdate, regTaker);

    }

    /** past = next */
    regTaker.bind();
 
View Full Code Here

Examples of com.barchart.feed.base.market.api.MarketDo.runSafe()

        register(inst);
      }

      final MarketDo market = marketMap.get(inst);

      market.runSafe(safeRegister, regTaker);

    }
   
    final Set<MarketDo> ms = new HashSet<MarketDo>();
View Full Code Here

Examples of com.barchart.feed.base.market.api.MarketDo.runSafe()

        if(market==null){
          log.error("Failed to get MarketDo for " + inst.symbol());
          continue;
        }
       
        market.runSafe(safeUnregister, regTaker);

        if (!market.hasRegTakers()) {
          unregister(inst);
        }
View Full Code Here

Examples of com.barchart.feed.base.market.api.MarketDo.runSafe()

    if (!isValid(market)) {
      return;
    }

    market.runSafe(safeMake, message);

  }

  protected MarketSafeRunner<Void, Message> safeMake = //
  new MarketSafeRunner<Void, Message>() {
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.