Class NatsUtils

java.lang.Object
io.memoria.jutils.messaging.adapter.nats.NatsUtils

public class NatsUtils
extends java.lang.Object
  • Field Summary

    Fields 
    Modifier and Type Field Description
    static java.lang.String CHANNEL_SEPARATOR  
  • Method Summary

    Modifier and Type Method Description
    static io.nats.client.Connection createConnection​(YamlConfigMap c)  
    static Message toMessage​(io.nats.client.Message message)  
    static java.lang.String toSubject​(java.lang.String topic, int partition)  

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Field Details

  • Method Details

    • createConnection

      public static io.nats.client.Connection createConnection​(YamlConfigMap c) throws java.io.IOException, java.lang.InterruptedException
      Throws:
      java.io.IOException
      java.lang.InterruptedException
    • toMessage

      public static Message toMessage​(io.nats.client.Message message)
    • toSubject

      public static java.lang.String toSubject​(java.lang.String topic, int partition)