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

How to use
StupidResourceHolder
in
org.apache.druid.collections

Best Java code snippets using org.apache.druid.collections.StupidResourceHolder (Showing top 7 results out of 315)

origin: apache/incubator-druid

 @Test
 public void testCreateAndGet()
 {
  String expected = "String";
  resourceHolder = StupidResourceHolder.create(expected);
  String actual = resourceHolder.get();
  Assert.assertEquals(expected, actual);
  resourceHolder.close();
 }
}
origin: apache/incubator-druid

public static <T> StupidResourceHolder<T> create(T obj)
{
 return new StupidResourceHolder<>(obj);
}
origin: apache/incubator-druid

@Before
public void setUp()
{
 cache = new MemcachedCache(
   Suppliers.ofInstance(
     StupidResourceHolder.create(new MockMemcachedClient())
   ),
   memcachedCacheConfig,
   NOOP_MONITOR
 );
}
origin: apache/incubator-druid

} else {
 clientSupplier = Suppliers.ofInstance(
   StupidResourceHolder.create(new MemcachedClient(connectionFactory, hosts))
 );
origin: apache/incubator-druid

  StupidResourceHolder.create(client)
),
new MemcachedCacheConfig()
origin: org.apache.druid/druid-common

public static <T> StupidResourceHolder<T> create(T obj)
{
 return new StupidResourceHolder<>(obj);
}
origin: org.apache.druid/druid-server

} else {
 clientSupplier = Suppliers.ofInstance(
   StupidResourceHolder.create(new MemcachedClient(connectionFactory, hosts))
 );
org.apache.druid.collectionsStupidResourceHolder

Most used methods

  • create
  • <init>
  • close
  • get

Popular in Java

  • Reactive rest calls using spring rest template
  • getExternalFilesDir (Context)
  • setRequestProperty (URLConnection)
  • getApplicationContext (Context)
  • SecureRandom (java.security)
    This class generates cryptographically secure pseudo-random numbers. It is best to invoke SecureRand
  • NumberFormat (java.text)
    The abstract base class for all number formats. This class provides the interface for formatting and
  • Queue (java.util)
    A collection designed for holding elements prior to processing. Besides basic java.util.Collection o
  • TreeMap (java.util)
    Walk the nodes of the tree left-to-right or right-to-left. Note that in descending iterations, next
  • HttpServlet (javax.servlet.http)
    Provides an abstract class to be subclassed to create an HTTP servlet suitable for a Web site. A sub
  • Join (org.hibernate.mapping)
  • Top 12 Jupyter Notebook Extensions
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