Tabnine Logo
TopicRepository.removeTopic
Code IndexAdd Tabnine to your IDE (free)

How to use
removeTopic
method
in
pl.allegro.tech.hermes.domain.topic.TopicRepository

Best Java code snippets using pl.allegro.tech.hermes.domain.topic.TopicRepository.removeTopic (Showing top 2 results out of 315)

origin: allegro/hermes

private void createTopicInBrokers(Topic topic) {
  try {
    multiDCAwareService.manageTopic(brokerTopicManagement ->
        brokerTopicManagement.createTopic(topic)
    );
  } catch (Exception exception) {
    logger.error(
        String.format("Could not create topic %s, rollback topic creation.", topic.getQualifiedName()),
        exception
    );
    topicRepository.removeTopic(topic.getName());
  }
}
origin: allegro/hermes

private void removeTopic(Topic topic, String removedBy) {
  topicRepository.removeTopic(topic.getName());
  multiDCAwareService.manageTopic(brokerTopicManagement -> brokerTopicManagement.removeTopic(topic));
  auditor.objectRemoved(removedBy, Topic.class.getSimpleName(), topic.getQualifiedName());
  topicOwnerCache.onRemovedTopic(topic);
}
pl.allegro.tech.hermes.domain.topicTopicRepositoryremoveTopic

Popular methods of TopicRepository

  • getTopicDetails
  • listTopicNames
  • createTopic
  • listTopics
  • topicExists
  • ensureTopicExists
  • getTopicsDetails
  • isSubscribingRestricted
  • touchTopic
  • updateTopic

Popular in Java

  • Updating database using SQL prepared statement
  • runOnUiThread (Activity)
  • getSupportFragmentManager (FragmentActivity)
  • setRequestProperty (URLConnection)
  • InputStreamReader (java.io)
    A class for turning a byte stream into a character stream. Data read from the source input stream is
  • Proxy (java.net)
    This class represents proxy server settings. A created instance of Proxy stores a type and an addres
  • Dictionary (java.util)
    Note: Do not use this class since it is obsolete. Please use the Map interface for new implementatio
  • Map (java.util)
    A Map is a data structure consisting of a set of keys and values in which each key is mapped to a si
  • Properties (java.util)
    A Properties object is a Hashtable where the keys and values must be Strings. Each property can have
  • Option (scala)
  • Best plugins for Eclipse
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