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

How to use
com.palantir.common.proxy.DelayProxy
constructor

Best Java code snippets using com.palantir.common.proxy.DelayProxy.<init> (Showing top 2 results out of 315)

origin: palantir/atlasdb

@SuppressWarnings("unchecked")
public static <T> T newProxyInstance(Class<T> interfaceClass, T delegate,
    Supplier<Long> sleepTimeMsSupplier) {
  return (T)Proxy.newProxyInstance(interfaceClass.getClassLoader(),
    new Class<?>[] {interfaceClass}, new DelayProxy(delegate, sleepTimeMsSupplier));
}
origin: com.palantir.atlasdb/atlasdb-commons

@SuppressWarnings("unchecked")
public static <T> T newProxyInstance(Class<T> interfaceClass, T delegate,
    Supplier<Long> sleepTimeMsSupplier) {
  return (T)Proxy.newProxyInstance(interfaceClass.getClassLoader(),
    new Class<?>[] {interfaceClass}, new DelayProxy(delegate, sleepTimeMsSupplier));
}
com.palantir.common.proxyDelayProxy<init>

Popular methods of DelayProxy

  • newProxyInstance

Popular in Java

  • Running tasks concurrently on multiple threads
  • scheduleAtFixedRate (ScheduledExecutorService)
  • compareTo (BigDecimal)
  • getSupportFragmentManager (FragmentActivity)
  • ServerSocket (java.net)
    This class represents a server-side socket that waits for incoming client connections. A ServerSocke
  • Calendar (java.util)
    Calendar is an abstract base class for converting between a Date object and a set of integer fields
  • PriorityQueue (java.util)
    A PriorityQueue holds elements on a priority heap, which orders the elements according to their natu
  • Timer (java.util)
    Timers schedule one-shot or recurring TimerTask for execution. Prefer java.util.concurrent.Scheduled
  • TimeUnit (java.util.concurrent)
    A TimeUnit represents time durations at a given unit of granularity and provides utility methods to
  • Reflections (org.reflections)
    Reflections one-stop-shop objectReflections scans your classpath, indexes the metadata, allows you t
  • Github Copilot alternatives
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