Class Utils

java.lang.Object
io.micronaut.coherence.annotation.Utils

public final class Utils extends Object
Annotation utilities.
Since:
1.0
Author:
Jonathan Knight
  • Method Details

    • getFirstTopicName

      public static Optional<String> getFirstTopicName(io.micronaut.core.annotation.AnnotationMetadata metadata)
      Return the first topic name from the provided annotation metadata.
      Parameters:
      metadata - annotation metadata
      Returns:
      the first topic name from the provided annotation metadata, if any.
    • getTopicNames

      public static String[] getTopicNames(io.micronaut.core.annotation.AnnotationMetadata metadata)
      Return an array of topic names from the provided annotation metadata.
      Parameters:
      metadata - annotation metadata
      Returns:
      an array of topic names from the provided annotation metadata. A zero-length array will be returned if no topic names are present
    • getSendToTopicNames

      public static String[] getSendToTopicNames(io.micronaut.core.annotation.AnnotationMetadata metadata)
      Return an array of send-to topic names from the provided annotation metadata.
      Parameters:
      metadata - annotation metadata
      Returns:
      an array of send-to topic names from the provided annotation metadata. A zero-length array will be returned if no topic names are present