Package jetbrains.buildServer.push
Class SimpleMessage
- java.lang.Object
-
- jetbrains.buildServer.push.SimpleMessage
-
- All Implemented Interfaces:
TopicMessage
public class SimpleMessage extends Object implements TopicMessage
TopicMessageimplementation that can be used if message is serialized to the same string for all subscriptions.
-
-
Constructor Summary
Constructors Constructor Description SimpleMessage(String value)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanequals(Object o)inthashCode()Stringserialize(Subscription subscription)This method is invoked multiple times - for each subscription of the topic.StringtoString()
-
-
-
Constructor Detail
-
SimpleMessage
public SimpleMessage(@NotNull String value)
-
-
Method Detail
-
serialize
public String serialize(@NotNull Subscription subscription)
Description copied from interface:TopicMessageThis 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.- Specified by:
serializein interfaceTopicMessage
-
-