Interface ConsumerBuilder.FilterOptions<T>

Type Parameters:
T - type of the object returned by methods
All Known Subinterfaces:
ConsumerBuilder.StreamFilterOptions
Enclosing interface:
ConsumerBuilder

public static interface ConsumerBuilder.FilterOptions<T>
Filter options for support of AMQP filter expressions.

AMQP filter expressions are supported only with streams.

This a different filtering mechanism from stream filtering. Both mechanisms can be used together.

Requires RabbitMQ 4.1 or more.

See Also:
  • Method Details

    • messageId

      T messageId(Object id)
      Filter on message ID.
      Parameters:
      id - message ID
      Returns:
      type-parameter object
    • messageId

      T messageId(String id)
      Filter on message ID.
      Parameters:
      id - message ID
      Returns:
      type-parameter object
    • messageId

      T messageId(long id)
      Filter on message ID.
      Parameters:
      id - message ID
      Returns:
      type-parameter object
    • messageId

      T messageId(byte[] id)
      Filter on message ID.
      Parameters:
      id - message ID
      Returns:
      type-parameter object
    • messageId

      T messageId(UUID id)
      Filter on message ID.
      Parameters:
      id - message ID
      Returns:
      type-parameter object
    • correlationId

      T correlationId(Object correlationId)
      Filter on correlation ID.
      Parameters:
      correlationId - correlation ID
      Returns:
      type-parameter object
    • correlationId

      T correlationId(String correlationId)
      Filter on correlation ID.
      Parameters:
      correlationId - correlation ID
      Returns:
      type-parameter object
    • correlationId

      T correlationId(long correlationId)
      Filter on correlation ID.
      Parameters:
      correlationId - correlation ID
      Returns:
      type-parameter object
    • correlationId

      T correlationId(byte[] correlationId)
      Filter on correlation ID.
      Parameters:
      correlationId - correlation ID
      Returns:
      type-parameter object
    • correlationId

      T correlationId(UUID correlationId)
      Filter on correlation ID.
      Parameters:
      correlationId - correlation ID
      Returns:
      type-parameter object
    • userId

      T userId(byte[] userId)
      Filter on user ID.
      Parameters:
      userId - user ID
      Returns:
      type-parameter object
    • to

      T to(String to)
      Filter on to field.
      Parameters:
      to - to
      Returns:
      type-parameter object
    • subject

      T subject(String subject)
      Filter on subject field.
      Parameters:
      subject - subject
      Returns:
      type-parameter object
    • replyTo

      T replyTo(String replyTo)
      Filter on reply-to field.
      Parameters:
      replyTo - reply-to
      Returns:
      type-parameter object
    • contentType

      T contentType(String contentType)
      Filter on content-type field.
      Parameters:
      contentType - content-type
      Returns:
      type-parameter object
    • contentEncoding

      T contentEncoding(String contentEncoding)
      Filter on content-encoding field.
      Parameters:
      contentEncoding - content-encoding
      Returns:
      type-parameter object
    • absoluteExpiryTime

      T absoluteExpiryTime(long absoluteExpiryTime)
      Filter on absolute expiry time field.
      Parameters:
      absoluteExpiryTime - absolute expiry time
      Returns:
      type-parameter object
    • creationTime

      T creationTime(long creationTime)
      Filter on creation time field.
      Parameters:
      creationTime - creation time
      Returns:
      type-parameter object
    • groupId

      T groupId(String groupId)
      Filter on group ID.
      Parameters:
      groupId - group ID
      Returns:
      type-parameter object
    • groupSequence

      T groupSequence(int groupSequence)
      Filter on group sequence.
      Parameters:
      groupSequence - group sequence
      Returns:
      type-parameter object
    • replyToGroupId

      T replyToGroupId(String groupId)
      Filter on reply-to group.
      Parameters:
      groupId - group ID
      Returns:
      type-parameter object
    • property

      T property(String key, boolean value)
      Filter on boolean application property.
      Parameters:
      key - application property key
      value - application property value
      Returns:
      type-parameter object
    • property

      T property(String key, byte value)
      Filter on byte application property.
      Parameters:
      key - application property key
      value - application property value
      Returns:
      type-parameter object
    • property

      T property(String key, short value)
      Filter on short application property.
      Parameters:
      key - application property key
      value - application property value
      Returns:
      type-parameter object
    • property

      T property(String key, int value)
      Filter on integer application property.
      Parameters:
      key - application property key
      value - application property value
      Returns:
      type-parameter object
    • property

      T property(String key, long value)
      Filter on long application property.
      Parameters:
      key - application property key
      value - application property value
      Returns:
      type-parameter object
    • propertyUnsigned

      T propertyUnsigned(String key, byte value)
      Filter on unsigned byte application property.
      Parameters:
      key - application property key
      value - application property value
      Returns:
      type-parameter object
    • propertyUnsigned

      T propertyUnsigned(String key, short value)
      Filter on unsigned short application property.
      Parameters:
      key - application property key
      value - application property value
      Returns:
      type-parameter object
    • propertyUnsigned

      T propertyUnsigned(String key, int value)
      Filter on unsigned integer application property.
      Parameters:
      key - application property key
      value - application property value
      Returns:
      type-parameter object
    • propertyUnsigned

      T propertyUnsigned(String key, long value)
      Filter on unsigned long application property.
      Parameters:
      key - application property key
      value - application property value
      Returns:
      type-parameter object
    • property

      T property(String key, float value)
      Filter on float application property.
      Parameters:
      key - application property key
      value - application property value
      Returns:
      type-parameter object
    • property

      T property(String key, double value)
      Filter on double application property.
      Parameters:
      key - application property key
      value - application property value
      Returns:
      type-parameter object
    • propertyDecimal32

      T propertyDecimal32(String key, BigDecimal value)
      Filter on 32-bit decimal number application property.
      Parameters:
      key - application property key
      value - application property value
      Returns:
      type-parameter object
    • propertyDecimal64

      T propertyDecimal64(String key, BigDecimal value)
      Filter on 64-bit decimal number application property.
      Parameters:
      key - application property key
      value - application property value
      Returns:
      type-parameter object
    • propertyDecimal128

      T propertyDecimal128(String key, BigDecimal value)
      Filter on 128-bit decimal number application property.
      Parameters:
      key - application property key
      value - application property value
      Returns:
      type-parameter object
    • property

      T property(String key, char value)
      Filter on character application property.
      Parameters:
      key - application property key
      value - application property value
      Returns:
      type-parameter object
    • propertyTimestamp

      T propertyTimestamp(String key, long value)
      Filter on timestamp application property.
      Parameters:
      key - application property key
      value - application property value
      Returns:
      type-parameter object
    • property

      T property(String key, UUID value)
      Filter on UUID application property.
      Parameters:
      key - application property key
      value - application property value
      Returns:
      type-parameter object
    • property

      T property(String key, byte[] value)
      Filter on byte array application property.
      Parameters:
      key - application property key
      value - application property value
      Returns:
      type-parameter object
    • property

      T property(String key, String value)
      Filter on string application property.
      Parameters:
      key - application property key
      value - application property value
      Returns:
      type-parameter object
    • propertySymbol

      T propertySymbol(String key, String value)
      Filter on symbol application property.
      Parameters:
      key - application property key
      value - application property value
      Returns:
      type-parameter object