Class SubscriptionService

java.lang.Object
pl.allegro.tech.hermes.management.domain.subscription.SubscriptionService

public class SubscriptionService extends Object
  • Constructor Details

  • Method Details

    • listSubscriptionNames

      public List<String> listSubscriptionNames(pl.allegro.tech.hermes.api.TopicName topicName)
    • listTrackedSubscriptionNames

      public List<String> listTrackedSubscriptionNames(pl.allegro.tech.hermes.api.TopicName topicName)
    • listFilteredSubscriptionNames

      public List<String> listFilteredSubscriptionNames(pl.allegro.tech.hermes.api.TopicName topicName, pl.allegro.tech.hermes.api.Query<pl.allegro.tech.hermes.api.Subscription> query)
    • listSubscriptions

      public List<pl.allegro.tech.hermes.api.Subscription> listSubscriptions(pl.allegro.tech.hermes.api.TopicName topicName)
    • createSubscription

      public void createSubscription(pl.allegro.tech.hermes.api.Subscription subscription, RequestUser createdBy, String qualifiedTopicName)
    • getSubscriptionDetails

      public pl.allegro.tech.hermes.api.Subscription getSubscriptionDetails(pl.allegro.tech.hermes.api.TopicName topicName, String subscriptionName)
    • removeSubscription

      public void removeSubscription(pl.allegro.tech.hermes.api.TopicName topicName, String subscriptionName, RequestUser removedBy)
    • updateSubscription

      public void updateSubscription(pl.allegro.tech.hermes.api.TopicName topicName, String subscriptionName, pl.allegro.tech.hermes.api.PatchData patch, RequestUser modifiedBy)
    • updateSubscriptionState

      public void updateSubscriptionState(pl.allegro.tech.hermes.api.TopicName topicName, String subscriptionName, pl.allegro.tech.hermes.api.Subscription.State state, RequestUser modifiedBy)
    • getSubscriptionState

      public pl.allegro.tech.hermes.api.Subscription.State getSubscriptionState(pl.allegro.tech.hermes.api.TopicName topicName, String subscriptionName)
    • getSubscriptionMetrics

      public pl.allegro.tech.hermes.api.SubscriptionMetrics getSubscriptionMetrics(pl.allegro.tech.hermes.api.TopicName topicName, String subscriptionName)
    • getPersistentSubscriptionMetrics

      public pl.allegro.tech.hermes.api.PersistentSubscriptionMetrics getPersistentSubscriptionMetrics(pl.allegro.tech.hermes.api.TopicName topicName, String subscriptionName)
    • getSubscriptionHealth

      public pl.allegro.tech.hermes.api.SubscriptionHealth getSubscriptionHealth(pl.allegro.tech.hermes.api.TopicName topicName, String subscriptionName)
    • getLatestUndeliveredMessage

      public Optional<pl.allegro.tech.hermes.api.SentMessageTrace> getLatestUndeliveredMessage(pl.allegro.tech.hermes.api.TopicName topicName, String subscriptionName)
    • getLatestUndeliveredMessagesTrackerLogs

      public List<pl.allegro.tech.hermes.api.SentMessageTrace> getLatestUndeliveredMessagesTrackerLogs(pl.allegro.tech.hermes.api.TopicName topicName, String subscriptionName)
    • getMessageStatus

      public List<pl.allegro.tech.hermes.api.MessageTrace> getMessageStatus(String qualifiedTopicName, String subscriptionName, String messageId)
    • querySubscription

      public List<pl.allegro.tech.hermes.api.Subscription> querySubscription(pl.allegro.tech.hermes.api.Query<pl.allegro.tech.hermes.api.Subscription> query)
    • querySubscriptionsMetrics

      public List<pl.allegro.tech.hermes.api.SubscriptionNameWithMetrics> querySubscriptionsMetrics(pl.allegro.tech.hermes.api.Query<pl.allegro.tech.hermes.api.SubscriptionNameWithMetrics> query)
    • getAllSubscriptions

      public List<pl.allegro.tech.hermes.api.Subscription> getAllSubscriptions()
    • getForOwnerId

      public List<pl.allegro.tech.hermes.api.Subscription> getForOwnerId(pl.allegro.tech.hermes.api.OwnerId ownerId)
    • getAllUnhealthy

      public List<pl.allegro.tech.hermes.api.UnhealthySubscription> getAllUnhealthy(boolean respectMonitoringSeverity, List<String> subscriptionNames, List<String> qualifiedTopicNames)
    • getUnhealthyForOwner

      public List<pl.allegro.tech.hermes.api.UnhealthySubscription> getUnhealthyForOwner(pl.allegro.tech.hermes.api.OwnerId ownerId, boolean respectMonitoringSeverity, List<String> subscriptionNames, List<String> qualifiedTopicNames)