Class EventHubsManager
- java.lang.Object
-
- org.apache.logging.log4j.core.appender.AbstractManager
-
- com.microsoft.azure.eventhubs.extensions.appender.EventHubsManager
-
- All Implemented Interfaces:
AutoCloseable
public final class EventHubsManager extends org.apache.logging.log4j.core.appender.AbstractManager
-
-
Constructor Summary
Constructors Modifier Constructor Description protected
EventHubsManager(String name, String eventHubConnectionString)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
send(byte[] msg)
void
send(Iterable<byte[]> messages)
void
startup()
-
-
-
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
-
-