public interface Publisher
Modifier and Type | Method and Description |
---|---|
void |
close()
Close publisher, includes shutting down any connections, etc.
|
void |
initialize(PublisherContext context)
Initialize the publisher.
|
void |
publish(WebMessage message)
Publish given message to interested parties.
|
void close() throws PublisherException
PublisherException
- If error closing publisher.void initialize(PublisherContext context) throws PublisherException
context
- - Context in which the publisher is running.PublisherException
- - if there is initialization error.void publish(WebMessage message) throws PublisherException
message
- Message to be published.PublisherException
- If there is any error with publishing the exception.