congrats Icon
New! Announcing Tabnine Chat Beta
Learn More
Tabnine Logo
MethodExecutionAction.<init>
Code IndexAdd Tabnine to your IDE (free)

How to use
com.netflix.hystrix.contrib.javanica.command.MethodExecutionAction
constructor

Best Java code snippets using com.netflix.hystrix.contrib.javanica.command.MethodExecutionAction.<init> (Showing top 6 results out of 315)

origin: PipelineAI/pipeline

private CommandAction createCommandAction(MetaHolder metaHolder) {
  return new MethodExecutionAction(metaHolder.getObj(), metaHolder.getMethod(), metaHolder.getArgs(), metaHolder);
}
origin: PipelineAI/pipeline

private static MethodExecutionAction createCacheKeyAction(String method, MetaHolder metaHolder) {
  MethodExecutionAction cacheKeyAction = null;
  if (StringUtils.isNotBlank(method)) {
    Method cacheKeyMethod = getDeclaredMethod(metaHolder.getObj().getClass(), method,
        metaHolder.getMethod().getParameterTypes());
    if (cacheKeyMethod == null) {
      throw new HystrixCachingException("method with name '" + method + "' doesn't exist in class '"
          + metaHolder.getObj().getClass() + "'");
    }
    if (!cacheKeyMethod.getReturnType().equals(String.class)) {
      throw new HystrixCachingException("return type of cacheKey method must be String. Method: '" + method + "', Class: '"
          + metaHolder.getObj().getClass() + "'");
    }
    MetaHolder cMetaHolder = MetaHolder.builder().obj(metaHolder.getObj()).method(cacheKeyMethod).args(metaHolder.getArgs()).build();
    cacheKeyAction = new MethodExecutionAction(cMetaHolder.getObj(), cacheKeyMethod, cMetaHolder.getArgs(), cMetaHolder);
  }
  return cacheKeyAction;
}
origin: PipelineAI/pipeline

fallbackAction = new MethodExecutionAction(fmMetaHolder.getObj(), fMethod, fmMetaHolder.getArgs(), fmMetaHolder);
origin: com.netflix.hystrix/hystrix-javanica

private CommandAction createCommandAction(MetaHolder metaHolder) {
  return new MethodExecutionAction(metaHolder.getObj(), metaHolder.getMethod(), metaHolder.getArgs(), metaHolder);
}
origin: com.netflix.hystrix/hystrix-javanica

private static MethodExecutionAction createCacheKeyAction(String method, MetaHolder metaHolder) {
  MethodExecutionAction cacheKeyAction = null;
  if (StringUtils.isNotBlank(method)) {
    Method cacheKeyMethod = getDeclaredMethod(metaHolder.getObj().getClass(), method,
        metaHolder.getMethod().getParameterTypes());
    if (cacheKeyMethod == null) {
      throw new HystrixCachingException("method with name '" + method + "' doesn't exist in class '"
          + metaHolder.getObj().getClass() + "'");
    }
    if (!cacheKeyMethod.getReturnType().equals(String.class)) {
      throw new HystrixCachingException("return type of cacheKey method must be String. Method: '" + method + "', Class: '"
          + metaHolder.getObj().getClass() + "'");
    }
    MetaHolder cMetaHolder = MetaHolder.builder().obj(metaHolder.getObj()).method(cacheKeyMethod).args(metaHolder.getArgs()).build();
    cacheKeyAction = new MethodExecutionAction(cMetaHolder.getObj(), cacheKeyMethod, cMetaHolder.getArgs(), cMetaHolder);
  }
  return cacheKeyAction;
}
origin: com.netflix.hystrix/hystrix-javanica

fallbackAction = new MethodExecutionAction(fmMetaHolder.getObj(), fMethod, fmMetaHolder.getArgs(), fmMetaHolder);
com.netflix.hystrix.contrib.javanica.commandMethodExecutionAction<init>

Popular methods of MethodExecutionAction

  • execute
    Invokes the method.
  • executeClj
  • executeWithArgs
    Invokes the method. Also private method also can be invoked.
  • getMethod
  • propagateCause
    Retrieves cause exception and wraps to CommandActionExecutionException.

Popular in Java

  • Parsing JSON documents to java classes using gson
  • getApplicationContext (Context)
  • onRequestPermissionsResult (Fragment)
  • notifyDataSetChanged (ArrayAdapter)
  • Graphics2D (java.awt)
    This Graphics2D class extends the Graphics class to provide more sophisticated control overgraphics
  • BigInteger (java.math)
    An immutable arbitrary-precision signed integer.FAST CRYPTOGRAPHY This implementation is efficient f
  • MessageFormat (java.text)
    Produces concatenated messages in language-neutral way. New code should probably use java.util.Forma
  • SimpleDateFormat (java.text)
    Formats and parses dates in a locale-sensitive manner. Formatting turns a Date into a String, and pa
  • Set (java.util)
    A Set is a data structure which does not allow duplicate elements.
  • JComboBox (javax.swing)
  • Top plugins for Android Studio
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