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

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

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

origin: allegro/hermes

public Topic getTopicDetails(TopicName topicName) {
  return topicRepository.getTopicDetails(topicName);
}
origin: allegro/hermes

@Override
public void onTopicBlacklisted(String qualifiedTopicName) {
  Optional<Topic> topic = Optional.ofNullable(
      Optional.ofNullable(
          topicCache.get(qualifiedTopicName)).map(CachedTopic::getTopic).orElseGet(() ->
          topicRepository.getTopicDetails(TopicName.fromQualifiedName(qualifiedTopicName))));
  topic.ifPresent(t -> topicCache.put(qualifiedTopicName, bannedTopic(t)));
}
origin: allegro/hermes

@Override
public void onTopicUnblacklisted(String qualifiedTopicName) {
  Optional<Topic> topic = Optional.ofNullable(
      Optional.ofNullable(
          topicCache.get(qualifiedTopicName)).map(CachedTopic::getTopic).orElseGet(() ->
          topicRepository.getTopicDetails(TopicName.fromQualifiedName(qualifiedTopicName))));
  topic.ifPresent(t -> topicCache.put(qualifiedTopicName, cachedTopic(t)));
}
origin: allegro/hermes

private boolean isTopicOwner(Subscription subscription, ContainerRequestContext requestContext) {
  return getOwnershipResolver(requestContext).isUserAnOwner(topicRepository.getTopicDetails(subscription.getTopicName()).getOwner());
}
origin: allegro/hermes

public Consumer createConsumer(Subscription subscription) {
  Topic topic = topicRepository.getTopicDetails(subscription.getTopicName());
  if (subscription.isBatchSubscription()) {
    return new BatchConsumer(messageReceiverFactory,
origin: pl.allegro.tech.hermes/hermes-consumers

public Consumer createConsumer(Subscription subscription) {
  Topic topic = topicRepository.getTopicDetails(subscription.getTopicName());
  if (subscription.isBatchSubscription()) {
    return new BatchConsumer(messageReceiverFactory,
pl.allegro.tech.hermes.domain.topicTopicRepositorygetTopicDetails

Popular methods of TopicRepository

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

Popular in Java

  • Making http requests using okhttp
  • getSharedPreferences (Context)
  • getOriginalFilename (MultipartFile)
    Return the original filename in the client's filesystem.This may contain path information depending
  • getApplicationContext (Context)
  • BorderLayout (java.awt)
    A border layout lays out a container, arranging and resizing its components to fit in five regions:
  • GridLayout (java.awt)
    The GridLayout class is a layout manager that lays out a container's components in a rectangular gri
  • Window (java.awt)
    A Window object is a top-level window with no borders and no menubar. The default layout for a windo
  • ByteBuffer (java.nio)
    A buffer for bytes. A byte buffer can be created in either one of the following ways: * #allocate
  • PriorityQueue (java.util)
    A PriorityQueue holds elements on a priority heap, which orders the elements according to their natu
  • StringTokenizer (java.util)
    Breaks a string into tokens; new code should probably use String#split.> // Legacy code: StringTo
  • Top plugins for WebStorm
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