Interface Destination<T>
- All Known Implementing Classes:
EmailPublisher,GChatPublisher,GenericPublisher,MSTeamsPublisher,SlackEventPublisher
public interface Destination<T>
-
Method Summary
Modifier and TypeMethodDescriptionvoidclose()booleanvoidsendMessage(T event) default voidsetAwaitingRetry(Long attemptTime, int statusCode, String reason) default voidsetErrorStatus(Long attemptTime, Integer statusCode, String reason) default voidsetStatus(SubscriptionStatus.Status status, Long attemptTime, Integer statusCode, String reason, Long timestamp) default voidsetSuccessStatus(Long updateTime)
-
Method Details
-
sendMessage
- Throws:
EventPublisherException
-
getSubscriptionDestination
SubscriptionDestination getSubscriptionDestination() -
close
void close() -
getEnabled
boolean getEnabled() -
setErrorStatus
-
setAwaitingRetry
-
setSuccessStatus
-
setStatus
default void setStatus(SubscriptionStatus.Status status, Long attemptTime, Integer statusCode, String reason, Long timestamp)
-