@NotThreadSafe public static final class ImmutableMessageFilter.Builder extends Object
ImmutableMessageFilter.
Initialize attributes and then invoke the build() method to create an
immutable instance.
Builder is not thread-safe and generally should not be stored in a field or collection,
but instead used immediately to create instances.
| Modifier and Type | Method and Description |
|---|---|
ImmutableMessageFilter |
build()
Builds a new
ImmutableMessageFilter. |
ImmutableMessageFilter.Builder |
from(LocalDateTime from)
Initializes the optional value
from to from. |
ImmutableMessageFilter.Builder |
from(Optional<? extends LocalDateTime> from)
Initializes the optional value
from to from. |
ImmutableMessageFilter.Builder |
key(String key)
Initializes the value for the
key attribute. |
ImmutableMessageFilter.Builder |
keyFormat(org.jresearch.gavka.domain.KeyFormat keyFormat)
Initializes the value for the
keyFormat attribute. |
ImmutableMessageFilter.Builder |
messageFormat(org.jresearch.gavka.domain.MessageFormat messageFormat)
Initializes the value for the
messageFormat attribute. |
ImmutableMessageFilter.Builder |
topic(String topic)
Initializes the value for the
topic attribute. |
ImmutableMessageFilter.Builder |
valuePattern(String valuePattern)
Initializes the value for the
valuePattern attribute. |
@CanIgnoreReturnValue public final ImmutableMessageFilter.Builder topic(String topic)
topic attribute.topic - The value for topicthis builder for use in a chained invocation@CanIgnoreReturnValue public final ImmutableMessageFilter.Builder key(String key)
key attribute.key - The value for keythis builder for use in a chained invocation@CanIgnoreReturnValue public final ImmutableMessageFilter.Builder valuePattern(String valuePattern)
valuePattern attribute.valuePattern - The value for valuePatternthis builder for use in a chained invocation@CanIgnoreReturnValue public final ImmutableMessageFilter.Builder from(LocalDateTime from)
from to from.from - The value for fromthis builder for chained invocation@CanIgnoreReturnValue public final ImmutableMessageFilter.Builder from(Optional<? extends LocalDateTime> from)
from to from.from - The value for fromthis builder for use in a chained invocation@CanIgnoreReturnValue public final ImmutableMessageFilter.Builder keyFormat(org.jresearch.gavka.domain.KeyFormat keyFormat)
keyFormat attribute.keyFormat - The value for keyFormatthis builder for use in a chained invocation@CanIgnoreReturnValue public final ImmutableMessageFilter.Builder messageFormat(org.jresearch.gavka.domain.MessageFormat messageFormat)
messageFormat attribute.messageFormat - The value for messageFormatthis builder for use in a chained invocationpublic ImmutableMessageFilter build()
ImmutableMessageFilter.IllegalStateException - if any required attributes are missingCopyright © 2019. All rights reserved.