congrats Icon
New! Announcing Tabnine Chat Beta
Learn More
Tabnine Logo
KeyValueOperations.destroy
Code IndexAdd Tabnine to your IDE (free)

How to use
destroy
method
in
org.springframework.data.keyvalue.core.KeyValueOperations

Best Java code snippets using org.springframework.data.keyvalue.core.KeyValueOperations.destroy (Showing top 3 results out of 315)

origin: spring-projects/spring-data-redis

@Override
public void destroy(KeyValueOperations instance, CreationalContext<KeyValueOperations> creationalContext) {
  if (instance.getMappingContext() instanceof DisposableBean) {
    try {
      ((DisposableBean) instance.getMappingContext()).destroy();
      instance.destroy();
    } catch (Exception e) {
      throw new IllegalStateException(e);
    }
  }
  super.destroy(instance, creationalContext);
}
origin: org.springframework.data/spring-data-redis

@Override
public void destroy(KeyValueOperations instance, CreationalContext<KeyValueOperations> creationalContext) {
  if (instance.getMappingContext() instanceof DisposableBean) {
    try {
      ((DisposableBean) instance.getMappingContext()).destroy();
      instance.destroy();
    } catch (Exception e) {
      throw new IllegalStateException(e);
    }
  }
  super.destroy(instance, creationalContext);
}
origin: apache/servicemix-bundles

@Override
public void destroy(KeyValueOperations instance, CreationalContext<KeyValueOperations> creationalContext) {
  if (instance.getMappingContext() instanceof DisposableBean) {
    try {
      ((DisposableBean) instance.getMappingContext()).destroy();
      instance.destroy();
    } catch (Exception e) {
      throw new IllegalStateException(e);
    }
  }
  super.destroy(instance, creationalContext);
}
org.springframework.data.keyvalue.coreKeyValueOperationsdestroy

Popular methods of KeyValueOperations

  • getMappingContext
  • count
    Total number of elements matching given query. Respects KeySpace if present and therefore counts all
  • delete
    Delete item of type with given id.
  • find
    Get all elements matching the given query. Respects KeySpace if present and therefore returns all e
  • findAll
    Get all elements ordered by sort. Respects KeySpace if present and therefore returns all elements th
  • findById
    Get element of given type with given id. Respects KeySpace if present and therefore returns all elem
  • findInRange
    Get all elements in given range ordered by sort. Respects KeySpace if present and therefore returns
  • insert
    Add object with given id.
  • update

Popular in Java

  • Parsing JSON documents to java classes using gson
  • runOnUiThread (Activity)
  • getApplicationContext (Context)
  • addToBackStack (FragmentTransaction)
  • Menu (java.awt)
  • ServerSocket (java.net)
    This class represents a server-side socket that waits for incoming client connections. A ServerSocke
  • SortedSet (java.util)
    SortedSet is a Set which iterates over its elements in a sorted order. The order is determined eithe
  • Executors (java.util.concurrent)
    Factory and utility methods for Executor, ExecutorService, ScheduledExecutorService, ThreadFactory,
  • DataSource (javax.sql)
    An interface for the creation of Connection objects which represent a connection to a database. This
  • Options (org.apache.commons.cli)
    Main entry-point into the library. Options represents a collection of Option objects, which describ
  • 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