congrats Icon
New! Tabnine Pro 14-day free trial
Start a free trial
Tabnine Logo
DelayProxy
Code IndexAdd Tabnine to your IDE (free)

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

Best Java code snippets using com.palantir.common.proxy.DelayProxy (Showing top 6 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: palantir/atlasdb

public static <T> T newProxyInstance(Class<T> interfaceClass, T delegate, long sleepTimeMs) {
  return newProxyInstance(interfaceClass, delegate, Suppliers.ofInstance(sleepTimeMs));
}
origin: palantir/atlasdb

public static <T> T newProxyInstance(Class<T> interfaceClass, T delegate, long sleep) {
  return SerializingProxy.newProxyInstance(interfaceClass,
      InterruptibleProxy.newProxyInstance(interfaceClass,
        DelayProxy.newProxyInstance(interfaceClass, delegate, sleep),
        CancelDelegate.CANCEL));
}
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));
}
origin: com.palantir.atlasdb/atlasdb-commons

public static <T> T newProxyInstance(Class<T> interfaceClass, T delegate, long sleepTimeMs) {
  return newProxyInstance(interfaceClass, delegate, Suppliers.ofInstance(sleepTimeMs));
}
origin: com.palantir.atlasdb/atlasdb-commons

public static <T> T newProxyInstance(Class<T> interfaceClass, T delegate, long sleep) {
  return SerializingProxy.newProxyInstance(interfaceClass,
      InterruptibleProxy.newProxyInstance(interfaceClass,
        DelayProxy.newProxyInstance(interfaceClass, delegate, sleep),
        CancelDelegate.CANCEL));
}
com.palantir.common.proxyDelayProxy

Most used methods

  • <init>
  • newProxyInstance

Popular in Java

  • Updating database using SQL prepared statement
  • setRequestProperty (URLConnection)
  • scheduleAtFixedRate (Timer)
  • startActivity (Activity)
  • BufferedWriter (java.io)
    Wraps an existing Writer and buffers the output. Expensive interaction with the underlying reader is
  • FileNotFoundException (java.io)
    Thrown when a file specified by a program cannot be found.
  • Date (java.util)
    A specific moment in time, with millisecond precision. Values typically come from System#currentTime
  • JButton (javax.swing)
  • JList (javax.swing)
  • Option (scala)
  • Top 15 Vim Plugins
Tabnine Logo
  • Products

    Search for Java codeSearch for JavaScript code
  • IDE Plugins

    IntelliJ IDEAWebStormVisual StudioAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimAtomGoLandRubyMineEmacsJupyter NotebookJupyter LabRiderDataGripAppCode
  • Company

    About UsContact UsCareers
  • Resources

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