Uses of Class
io.github.pimak.ntfy.core.NtfyConfig.Builder
Packages that use NtfyConfig.Builder
-
Uses of NtfyConfig.Builder in io.github.pimak.ntfy.core
Methods in io.github.pimak.ntfy.core that return NtfyConfig.BuilderModifier and TypeMethodDescriptionNtfyConfig.Builder.actions(List<NtfyAction> actions) Sets action buttons from typedNtfyActions, serialized to the ntfyActionsheader viaNtfyActionSerializer. ntfy caps a notification at three actions; extra entries andnullelements are dropped.NtfyConfig.Builder.actionsHeader(String actionsHeader) Sets action buttons from a raw, pre-formatted ntfyActionsheader value (the short "simple" format, e.g.NtfyConfig.Builder.allowClasspathEndpoint(boolean allowClasspathEndpoint) Explicit opt-in for activating from a classpath-only endpoint URL; seeNtfyConfig.isAllowClasspathEndpoint().NtfyConfig.Builder.asyncEnabled(boolean asyncEnabled) Toggles asynchronous (offloaded) delivery of individual error alerts.NtfyConfig.Builder.asyncQueueCapacity(int asyncQueueCapacity) Sets the bounded async delivery queue capacity (seeNtfyConfig.getAsyncQueueCapacity()).static NtfyConfig.BuilderNtfyConfig.builder()Returns a freshNtfyConfig.Builderpre-loaded with every default.NtfyConfig.Builder.cache(boolean cache) falseasks the server not to store the message (Cache: no), at the cost of every subscriber who is not connected at that moment.Setscachefrom a raw configuration string, the spelling every flat surface hands over — an XML attribute, an environment variable, a properties entry.URL opened when a notification is tapped (ntfyClickheader);nullto omit.NtfyConfig.Builder.connectTimeout(Duration connectTimeout) NtfyConfig.Builder.digestPriority(String digestPriority) NtfyConfig.Builder.digestTags(String digestTags) NtfyConfig.Builder.enabled(boolean enabled) NtfyConfig.Builder.endpointFromClasspathFile(boolean endpointFromClasspathFile) SeeNtfyConfig.isEndpointFromClasspathFile(); set byConfigLoaderonly.NtfyConfig.Builder.errorPriority(String errorPriority) NtfyConfig.Builder.excludedExceptionTypes(List<String> types) Sets the excluded exception types from an explicit list of fully qualified class names (defensively copied, null-safe, blanks dropped).NtfyConfig.Builder.excludedExceptionTypesCsv(String csv) Convenience: sets the excluded exception types from a single comma-separated string of fully qualified class names, trimming each entry and dropping blanks.NtfyConfig.Builder.excludedLoggerPrefixes(List<String> prefixes) Sets the excluded logger prefixes from an explicit list (defensively copied, null-safe).NtfyConfig.Builder.excludedLoggers(String csv) Convenience: sets the excluded logger prefixes from a single comma-separated string, trimming each entry and dropping blanks.NtfyConfig.Builder.firebase(boolean firebase) falseasks the server not to forward the message to Firebase (Firebase: no), at the cost of push latency on the Google Play Android client.firebasefrom a raw configuration string.Sets the notification icon URL (ntfyIconheader).NtfyConfig.Builder.iconsByLoggerPrefix(Map<String, String> icons) Sets the logger-prefix → icon-URL table (defensively copied, null-safe).NtfyConfig.Builder.iconsByLoggerPrefixCsv(String csv) Convenience: the same table as a single string,prefix=urlpairs separated by commas — the spelling every adapter's flat configuration surface uses.NtfyConfig.Builder.includeMdcKeys(List<String> keys) Sets the MDC-key allow-list from an explicit list (defensively copied, null-safe); anulllist clears it.NtfyConfig.Builder.includeMdcKeysCsv(String csv) Convenience: sets the MDC-key allow-list from a single comma-separated string, trimming each entry and dropping blanks.Convenience overload that parses a BCP 47 language tag (e.g.Sets the language of notification bodies and diagnostics (seeNtfyConfig.getLocale()).NtfyConfig.Builder.maxAlertsPerWindow(int maxAlertsPerWindow) NtfyConfig.Builder.maxStackFrames(int maxStackFrames) NtfyConfig.Builder.requestTimeout(Duration requestTimeout) NtfyConfig.Builder.requireHttpsForCredentials(boolean requireHttpsForCredentials) Toggles refusing activation when credentials would traverse a cleartexthttp://endpoint.NtfyConfig.Builder.startupPing(StartupPingMode startupPing) Selects the opt-in startup self-test mode (seeNtfyConfig.getStartupPing()).NtfyConfig.Builder.startupPing(String startupPing) Convenience overload parsing a configured string (off/probe/publish, case-insensitive) so the XML and properties surfaces bind without carrying their own parser.NtfyConfig.Builder.startupPingFailFast(boolean startupPingFailFast) Toggles aborting application startup when the self-test fails; seeNtfyConfig.isStartupPingFailFast().NtfyConfig.Builder.startupPingNotifyFailures(boolean startupPingNotifyFailures) Toggles announcing a failed self-test on a route that passed; seeNtfyConfig.isStartupPingNotifyFailures().NtfyConfig.Builder.startupPingWarn(StartupPingMode startupPingWarn) Selects the startup self-test mode for the WARN route (seeNtfyConfig.getStartupPingWarn()).NtfyConfig.Builder.startupPingWarn(String startupPingWarn) Lenient string overload forstartup-ping-warn; seestartupPing(String).NtfyConfig.Builder.suppressionWindow(Duration suppressionWindow) NtfyConfig.Builder.warnPriority(String warnPriority) ntfyPriorityheader for WARN alerts and the WARN digest; defaultdefault.ntfyTagsheader for WARN alerts and the WARN digest; defaultwarning.The topic WARN-level events are published to.NtfyConfig.Builder.warnTopicFromClasspathFile(boolean warnTopicFromClasspathFile) SeeNtfyConfig.isWarnTopicFromClasspathFile(); set byConfigLoaderonly.