Interface UpdateMessageContext

All Superinterfaces:
MessageContext

public interface UpdateMessageContext extends MessageContext
A notice that a newer plugin version exists. Builds on MessageContext.
  • Method Details

    • builder

      static net.flectone.pulse.module.message.update.model.UpdateMessageContextImpl.UpdateMessageContextImplBuilder builder()
      Starts building this context.
      Returns:
      a new builder
    • latestVersion

      @NonNull String latestVersion()
      The version available.
      Returns:
      the version available
    • currentVersion

      @NonNull String currentVersion()
      The version running.
      Returns:
      the version running
    • withLatestVersion

      UpdateMessageContext withLatestVersion(@NonNull String latestVersion)
      Returns a copy carrying a different value.
      Parameters:
      latestVersion - the version available
      Returns:
      the copy
    • withCurrentVersion

      UpdateMessageContext withCurrentVersion(@NonNull String currentVersion)
      Returns a copy carrying a different value.
      Parameters:
      currentVersion - the version running
      Returns:
      the copy