Tabnine Logo
FutureCallbackProxy.<init>
Code IndexAdd Tabnine to your IDE (free)

How to use
rocks.inspectit.agent.java.tracing.core.adapter.http.proxy.FutureCallbackProxy
constructor

Best Java code snippets using rocks.inspectit.agent.java.tracing.core.adapter.http.proxy.FutureCallbackProxy.<init> (Showing top 2 results out of 315)

origin: inspectIT/inspectIT

/**
 * {@inheritDoc}
 */
@Override
public Object beforeBody(long methodId, Object object, Object[] parameters, SpecialSensorConfig ssc) {
  if ((null != parameters) && (parameters.length == 4)) {
    // the HTTP context
    Object httpContext = parameters[2];
    // the original callback given by the user
    Object originalCallback = parameters[3];
    SpanStoreAdapter spanStoreAdapter = new ApacheHttpContextSpanStoreAdapter(httpContext);
    FutureCallbackProxy proxy = new FutureCallbackProxy(originalCallback, spanStoreAdapter);
    Object newProxy = runtimeLinker.createProxy(FutureCallbackProxy.class, proxy, object.getClass().getClassLoader());
    parameters[3] = newProxy;
  }
  return null;
}
origin: inspectIT/inspectIT

@BeforeMethod
public void init() throws Exception {
  proxy = new FutureCallbackProxy(originalCallback, spanStoreAdapter);
  WFutureCallback.completed = new CachedMethod<Void>(FutureCallback.class.getName(), "completed", Object.class);
  WFutureCallback.failed = new CachedMethod<Void>(FutureCallback.class.getName(), "failed", Exception.class);
  WFutureCallback.cancelled = new CachedMethod<Void>(FutureCallback.class.getName(), "cancelled");
}
rocks.inspectit.agent.java.tracing.core.adapter.http.proxyFutureCallbackProxy<init>

Javadoc

Constructor.

Popular methods of FutureCallbackProxy

  • cancelled
    Cancelled method for FutureCallback.
  • completed
    Completed method for FutureCallback.
  • failed
    Failed method of FutureCallback.
  • getProxyConstructorArguments

Popular in Java

  • Creating JSON documents from java classes using gson
  • getSupportFragmentManager (FragmentActivity)
  • orElseThrow (Optional)
    Return the contained value, if present, otherwise throw an exception to be created by the provided s
  • setContentView (Activity)
  • UnknownHostException (java.net)
    Thrown when a hostname can not be resolved.
  • Enumeration (java.util)
    A legacy iteration interface.New code should use Iterator instead. Iterator replaces the enumeration
  • ResourceBundle (java.util)
    ResourceBundle is an abstract class which is the superclass of classes which provide Locale-specifi
  • Callable (java.util.concurrent)
    A task that returns a result and may throw an exception. Implementors define a single method with no
  • Cipher (javax.crypto)
    This class provides access to implementations of cryptographic ciphers for encryption and decryption
  • ImageIO (javax.imageio)
  • 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