Class EventHubsManager

  • All Implemented Interfaces:
    AutoCloseable

    public final class EventHubsManager
    extends org.apache.logging.log4j.core.appender.AbstractManager
    • Field Summary

      • Fields inherited from class org.apache.logging.log4j.core.appender.AbstractManager

        count, LOGGER
    • Constructor Summary

      Constructors 
      Modifier Constructor Description
      protected EventHubsManager​(String name, String eventHubConnectionString)  
    • Constructor Detail

      • EventHubsManager

        protected EventHubsManager​(String name,
                                   String eventHubConnectionString)
    • Method Detail

      • send

        public void send​(byte[] msg)
                  throws com.microsoft.azure.eventhubs.EventHubException
        Throws:
        com.microsoft.azure.eventhubs.EventHubException
      • send

        public void send​(Iterable<byte[]> messages)
                  throws com.microsoft.azure.eventhubs.EventHubException
        Throws:
        com.microsoft.azure.eventhubs.EventHubException
      • startup

        public void startup()
                     throws com.microsoft.azure.eventhubs.EventHubException,
                            IOException
        Throws:
        com.microsoft.azure.eventhubs.EventHubException
        IOException