Package jetbrains.buildServer.push
Interface TopicMessage
-
- All Known Implementing Classes:
SecuredMessage
,SecuredMessageWithMap
,SimpleMessage
public interface TopicMessage
UseSimpleMessage
implementation or create your own.- Author:
- Dmitry Treskunov
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description String
serialize(Subscription subscription)
This method is invoked multiple times - for each subscription of the topic.
-
-
-
Method Detail
-
serialize
@Nullable String serialize(@NotNull Subscription subscription)
This method is invoked multiple times - for each subscription of the topic. Invocation for subscription is performed when security context contains the user corresponding to this subscription (seeSubscription.getUser()
. So implementations can serialize message differently depending on the user who will receive this message. If null is returned, then message will not be pushed to the corresponding subscription.
-
-