Package org.forgerock.audit.handlers.jms
Interface Publisher<T>
- Type Parameters:
T
- The type of object that this publisher will publish as a representive of the audit event.
- All Known Implementing Classes:
BatchPublisher
public interface Publisher<T>
Defines a generic interface for audit event publishers.
-
Method Summary
-
Method Details
-
startup
Initialize services that are reused by individual publish calls.- Throws:
ResourceException
- If the publisher cannot be started.
-
shutdown
Cleanup services that were initialized withstartup()
.- Throws:
ResourceException
- If the publisher cannot be shut down.
-
publish
implement this to deliver the audit event representation to the service.- Parameters:
message
- representative object of the audit event- Throws:
ResourceException
- If the message cannot be published.
-