Tabnine Logo
InMemorySubscriptionMatcher.match
Code IndexAdd Tabnine to your IDE (free)

How to use
match
method
in
ca.uhn.fhir.jpa.subscription.module.matcher.InMemorySubscriptionMatcher

Best Java code snippets using ca.uhn.fhir.jpa.subscription.module.matcher.InMemorySubscriptionMatcher.match (Showing top 3 results out of 315)

origin: jamesagnew/hapi-fhir

@Override
public SubscriptionMatchResult match(CanonicalSubscription theSubscription, ResourceModifiedMessage theMsg) {
  try {
    return match(theSubscription.getCriteriaString(), theMsg.getNewPayload(myContext));
  } catch (Exception e) {
    throw new InternalErrorException("Failure processing resource ID[" + theMsg.getId(myContext) + "] for subscription ID[" + theSubscription.getIdElementString() + "]: " + e.getMessage(), e);
  }
}
origin: jamesagnew/hapi-fhir

  @Override
  public SubscriptionMatchResult match(CanonicalSubscription theSubscription, ResourceModifiedMessage theMsg) {
    SubscriptionMatchResult result;
    if (myDaoConfig.isEnableInMemorySubscriptionMatching()) {
      result = myInMemorySubscriptionMatcher.match(theSubscription, theMsg);
      if (result.supported()) {
        // TODO KHS test
        result.setInMemory(true);
      } else {
        ourLog.info("Criteria {} for Subscription {} not supported by InMemoryMatcher: {}.  Reverting to DatabaseMatcher", theSubscription.getCriteriaString(), theSubscription.getIdElementString(), result.getUnsupportedReason());
        result = myDaoSubscriptionMatcher.match(theSubscription, theMsg);
      }
    } else {
      result = myDaoSubscriptionMatcher.match(theSubscription, theMsg);
    }
    return result;
  }
}
origin: ca.uhn.hapi.fhir/hapi-fhir-jpaserver-base

  @Override
  public SubscriptionMatchResult match(CanonicalSubscription theSubscription, ResourceModifiedMessage theMsg) {
    SubscriptionMatchResult result;
    if (myDaoConfig.isEnableInMemorySubscriptionMatching()) {
      result = myInMemorySubscriptionMatcher.match(theSubscription, theMsg);
      if (result.supported()) {
        // TODO KHS test
        result.setInMemory(true);
      } else {
        ourLog.info("Criteria {} for Subscription {} not supported by InMemoryMatcher: {}.  Reverting to DatabaseMatcher", theSubscription.getCriteriaString(), theSubscription.getIdElementString(), result.getUnsupportedReason());
        result = myDaoSubscriptionMatcher.match(theSubscription, theMsg);
      }
    } else {
      result = myDaoSubscriptionMatcher.match(theSubscription, theMsg);
    }
    return result;
  }
}
ca.uhn.fhir.jpa.subscription.module.matcherInMemorySubscriptionMatchermatch

Popular methods of InMemorySubscriptionMatcher

  • <init>

Popular in Java

  • Parsing JSON documents to java classes using gson
  • putExtra (Intent)
  • getContentResolver (Context)
  • getExternalFilesDir (Context)
  • Color (java.awt)
    The Color class is used to encapsulate colors in the default sRGB color space or colors in arbitrary
  • BufferedWriter (java.io)
    Wraps an existing Writer and buffers the output. Expensive interaction with the underlying reader is
  • FileOutputStream (java.io)
    An output stream that writes bytes to a file. If the output file exists, it can be replaced or appen
  • JTextField (javax.swing)
  • Location (org.springframework.beans.factory.parsing)
    Class that models an arbitrary location in a Resource.Typically used to track the location of proble
  • Option (scala)
  • Top Vim plugins
Tabnine Logo
  • Products

    Search for Java codeSearch for JavaScript code
  • IDE Plugins

    IntelliJ IDEAWebStormVisual StudioAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimGoLandRubyMineEmacsJupyter NotebookJupyter LabRiderDataGripAppCode
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogTabnine AcademyTerms of usePrivacy policyJava Code IndexJavascript Code Index
Get Tabnine for your IDE now