Annotation Interface PushConsumer
@Documented
@Retention(RUNTIME)
@Target({METHOD,PARAMETER,TYPE})
@Bindable
@Executable
@MessageMapping
@Inherited
public @interface PushConsumer
Used to specify which stream should be used for messages.
- Since:
- 4.0.0
- Author:
- Joachim Grimm
- 
Optional Element SummaryOptional ElementsModifier and TypeOptional ElementDescriptionio.nats.client.api.AckPolicylonglong[]io.nats.client.api.DeliverPolicylongbooleanlonglonglongbooleanlongio.nats.client.api.ReplayPolicylong
- 
Element Details- 
value@AliasFor(annotation=io.micronaut.messaging.annotation.MessageMapping.class, member="value") String value- Returns:
- The subject to subscribe to.
 - Default:
- ""
 
- 
connection- Returns:
- The connection to use
- See Also:
 - Default:
- ""
 
- 
subject- Default:
- ""
 
- 
durableString durable- Returns:
- the durable name
- See Also:
- 
- ConsumerConfiguration.Builder.durable(String)
 
 - Default:
- ""
 
- 
deliverPolicyio.nats.client.api.DeliverPolicy deliverPolicy- Returns:
- the deliver policy
- See Also:
- 
- ConsumerConfiguration.Builder.deliverPolicy(DeliverPolicy)
 
 - Default:
- All
 
- 
startSequencelong startSequence- Returns:
- the start sequence
- See Also:
- 
- ConsumerConfiguration.Builder.startSequence(Long)
 
 - Default:
- -9223372036854775808L
 
- 
deliverSubjectString deliverSubject- Returns:
- the deliver subject
- See Also:
- 
- ConsumerConfiguration.Builder.deliverSubject(String)
 
 - Default:
- ""
 
- 
ackPolicyio.nats.client.api.AckPolicy ackPolicy- Returns:
- the acknowledgment policy
- See Also:
- 
- ConsumerConfiguration.Builder.ackPolicy(AckPolicy)
 
 - Default:
- Explicit
 
- 
ackWaitlong ackWait- Returns:
- the acknowledgment wait time in millis
- See Also:
- 
- ConsumerConfiguration.Builder.ackWait(long)
 
 - Default:
- -9223372036854775808L
 
- 
replayPolicyio.nats.client.api.ReplayPolicy replayPolicy- Returns:
- the replay policy
- See Also:
- 
- ConsumerConfiguration.Builder.replayPolicy(ReplayPolicy)
 
 - Default:
- Instant
 
- 
maxDeliverlong maxDeliver- Returns:
- the max deliver
- See Also:
- 
- ConsumerConfiguration.Builder.maxDeliver(long)
 
 - Default:
- -9223372036854775808L
 
- 
filterSubjectString filterSubject- Returns:
- the filter subject
- See Also:
- 
- ConsumerConfiguration.Builder.filterSubject(String)
 
 - Default:
- ""
 
- 
rateLimitlong rateLimit- Returns:
- the rate limit
- See Also:
- 
- ConsumerConfiguration.Builder.rateLimit(long)
 
 - Default:
- -9223372036854775808L
 
- 
sampleFrequencyString sampleFrequency- Returns:
- the sample frequency
- See Also:
- 
- ConsumerConfiguration.Builder.sampleFrequency(String)
 
 - Default:
- ""
 
- 
idleHeartbeatlong idleHeartbeat- Returns:
- the idle heartbeat in millis
- See Also:
- 
- ConsumerConfiguration.Builder.idleHeartbeat(long)
 
 - Default:
- -9223372036854775808L
 
- 
flowControllong flowControl- Returns:
- the flow control in millis
- See Also:
- 
- ConsumerConfiguration.Builder.flowControl(long)
 
 - Default:
- -9223372036854775808L
 
- 
backofflong[] backoff- Returns:
- the back off in millis
- See Also:
- 
- ConsumerConfiguration.Builder.backoff(long...)
 
 - Default:
- {-9223372036854775808L}
 
- 
headersOnlyboolean headersOnly- Returns:
- the header only
- See Also:
- 
- ConsumerConfiguration.Builder.headersOnly(Boolean)
 
 - Default:
- false
 
- 
maxAckPendinglong maxAckPending- Returns:
- the max acknowledgment pending
- See Also:
- 
- ConsumerConfiguration.Builder.maxAckPending(long)
 
 - Default:
- -9223372036854775808L
 
- 
deliverGroupString deliverGroup- Returns:
- the deliver group
- See Also:
- 
- ConsumerConfiguration.Builder.deliverGroup(String)
 
 - Default:
- ""
 
- 
descriptionString description- Returns:
- the description
- See Also:
- 
- ConsumerConfiguration.Builder.description(String)
 
 - Default:
- ""
 
- 
queueString queue- Returns:
- the queue of the consumer
 - Default:
- ""
 
- 
orderedboolean ordered- Returns:
- flag indicating whether this subscription should be ordered
- See Also:
- 
- PushSubscribeOptions.Builder.ordered(boolean)
 
 - Default:
- false
 
 
-