public class SlackPublisher
extends java.lang.Object
implements java.lang.AutoCloseable
| Modifier and Type | Class and Description |
|---|---|
static class |
SlackPublisher.SlackConfig |
| Constructor and Description |
|---|
SlackPublisher(SlackPublisher.SlackConfig slackConfig) |
SlackPublisher(SlackPublisher.SlackConfig slackConfig,
HttpConfig httpConfig) |
| Modifier and Type | Method and Description |
|---|---|
void |
close() |
void |
publish(java.lang.String route,
MapResult attachment) |
public SlackPublisher(SlackPublisher.SlackConfig slackConfig)
public SlackPublisher(SlackPublisher.SlackConfig slackConfig, HttpConfig httpConfig)
public void close()
throws java.io.IOException
close in interface java.lang.AutoCloseablejava.io.IOExceptionpublic void publish(java.lang.String route,
MapResult attachment)