Package com.opengamma.livedata.msg

Examples of com.opengamma.livedata.msg.LiveDataSubscriptionResponseMsg


        new SubscribeAction() {
          @Override
          public Collection<LiveDataSubscriptionResponse> subscribe(StandardLiveDataServer server, Collection<LiveDataSpecification> specifications) {
            LiveDataSubscriptionRequest liveDataSubscriptionRequest = buildSubRequest(subscriptionRequest, specifications);
            //NOTE: we call up to subscriptionRequestMade to get the exception catching
            LiveDataSubscriptionResponseMsg response = server.subscriptionRequestMade(liveDataSubscriptionRequest);

            //Check that we know how to combine these responses
            if (response.getRequestingUser() != subscriptionRequest.getUser()) {
              throw new OpenGammaRuntimeException("Unexpected user in response " + response.getRequestingUser());
            }
            return response.getResponses();
          }

          @Override
          public String getName() {
            return "SubscriptionRequestMade";
          }
        });
    return new LiveDataSubscriptionResponseMsg(subscriptionRequest.getUser(), responses);
  }
View Full Code Here

TOP

Related Classes of com.opengamma.livedata.msg.LiveDataSubscriptionResponseMsg

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.