Interface UpdateMessageContext
- All Superinterfaces:
MessageContext
A notice that a newer plugin version exists.
Builds on
MessageContext.-
Nested Class Summary
Nested classes/interfaces inherited from interface MessageContext
MessageContext.CacheKey -
Method Summary
Modifier and TypeMethodDescriptionstatic net.flectone.pulse.module.message.update.model.UpdateMessageContextImpl.UpdateMessageContextImplBuilderbuilder()Starts building this context.@NonNull StringThe version running.@NonNull StringThe version available.withCurrentVersion(@NonNull String currentVersion) Returns a copy carrying a different value.withLatestVersion(@NonNull String latestVersion) Returns a copy carrying a different value.Methods inherited from interface MessageContext
addFlag, addFlags, addTagResolver, addTagResolvers, base, createCacheKey, flags, isFlag, message, receiver, sender, tagResolver, toBuilder, uuid, withBase, withFlags, withMessage, withReceiver, withSender, withTagResolver, withUuid
-
Method Details
-
builder
static net.flectone.pulse.module.message.update.model.UpdateMessageContextImpl.UpdateMessageContextImplBuilder builder()Starts building this context.- Returns:
- a new builder
-
latestVersion
-
currentVersion
-
withLatestVersion
Returns a copy carrying a different value.- Parameters:
latestVersion- the version available- Returns:
- the copy
-
withCurrentVersion
Returns a copy carrying a different value.- Parameters:
currentVersion- the version running- Returns:
- the copy
-