Class AuthenticatedMessageHeader.Builder

  • All Implemented Interfaces:
    org.apache.avro.data.RecordBuilder

    
    public class AuthenticatedMessageHeader.Builder
    extends SpecificRecordBuilderBase<T> implements RecordBuilder<T>
                        

    RecordBuilder for AuthenticatedMessageHeader instances.

    • Constructor Detail

    • Method Detail

      • getTtl

         Instant getTtl()

        Gets the value of the 'ttl' field. A (time-to-live) unix timestamp (in milliseconds) after which this message will be dropped from the p2p layer. If no ttl is specified, the p2p layer will continue replaying this message infinitely until it is delivered.

      • setTtl

         AuthenticatedMessageHeader.Builder setTtl(Instant value)

        Sets the value of the 'ttl' field. A (time-to-live) unix timestamp (in milliseconds) after which this message will be dropped from the p2p layer. If no ttl is specified, the p2p layer will continue replaying this message infinitely until it is delivered.

        Parameters:
        value - The value of 'ttl'.
      • getMessageId

         String getMessageId()

        Gets the value of the 'messageId' field. A unique identifier for this message. This will be used by the p2p layer to track the delivery of this specific message.

      • setMessageId

         AuthenticatedMessageHeader.Builder setMessageId(String value)

        Sets the value of the 'messageId' field. A unique identifier for this message. This will be used by the p2p layer to track the delivery of this specific message.

        Parameters:
        value - The value of 'messageId'.
      • getTraceId

         String getTraceId()

        Gets the value of the 'traceId' field. A trace identifier. The semantics of this field can vary based on the use-case of the upstream user, but it can be used to trace together multiple instances of the same message (e.g. in cases where the upstream user also performs replays, it can assign the same trace ID to all the instances of the same replayed message).

      • setTraceId

         AuthenticatedMessageHeader.Builder setTraceId(String value)

        Sets the value of the 'traceId' field. A trace identifier. The semantics of this field can vary based on the use-case of the upstream user, but it can be used to trace together multiple instances of the same message (e.g. in cases where the upstream user also performs replays, it can assign the same trace ID to all the instances of the same replayed message).

        Parameters:
        value - The value of 'traceId'.
      • getSubsystem

         String getSubsystem()

        Gets the value of the 'subsystem' field. This value identifies the upstream user of the p2p layer that this message is sent from and should be received by. It can be used to filter incoming messages from the p2p layer and process only the ones destined for a specific system.

      • setSubsystem

         AuthenticatedMessageHeader.Builder setSubsystem(String value)

        Sets the value of the 'subsystem' field. This value identifies the upstream user of the p2p layer that this message is sent from and should be received by. It can be used to filter incoming messages from the p2p layer and process only the ones destined for a specific system.

        Parameters:
        value - The value of 'subsystem'.
      • getStatusFilter

         MembershipStatusFilter getStatusFilter()

        Gets the value of the 'statusFilter' field. Indicates what type of membership information should be used for P2P communication: pending, active, active or suspended. Active value must be used by non-MGM services. Only MGM services will use other options

      • setStatusFilter

         AuthenticatedMessageHeader.Builder setStatusFilter(MembershipStatusFilter value)

        Sets the value of the 'statusFilter' field. Indicates what type of membership information should be used for P2P communication: pending, active, active or suspended. Active value must be used by non-MGM services. Only MGM services will use other options

        Parameters:
        value - The value of 'statusFilter'.
      • hasDestination

         boolean hasDestination()

        Checks whether the 'destination' field has been set. The destination identity for this message.

      • hasDestinationBuilder

         boolean hasDestinationBuilder()

        Checks whether the 'destination' field has an active Builder instance The destination identity for this message.

      • hasSource

         boolean hasSource()

        Checks whether the 'source' field has been set. The source identity of this message.

      • hasSourceBuilder

         boolean hasSourceBuilder()

        Checks whether the 'source' field has an active Builder instance The source identity of this message.

      • hasTtl

         boolean hasTtl()

        Checks whether the 'ttl' field has been set. A (time-to-live) unix timestamp (in milliseconds) after which this message will be dropped from the p2p layer. If no ttl is specified, the p2p layer will continue replaying this message infinitely until it is delivered.

      • clearTtl

         AuthenticatedMessageHeader.Builder clearTtl()

        Clears the value of the 'ttl' field. A (time-to-live) unix timestamp (in milliseconds) after which this message will be dropped from the p2p layer. If no ttl is specified, the p2p layer will continue replaying this message infinitely until it is delivered.

      • hasMessageId

         boolean hasMessageId()

        Checks whether the 'messageId' field has been set. A unique identifier for this message. This will be used by the p2p layer to track the delivery of this specific message.

      • hasTraceId

         boolean hasTraceId()

        Checks whether the 'traceId' field has been set. A trace identifier. The semantics of this field can vary based on the use-case of the upstream user, but it can be used to trace together multiple instances of the same message (e.g. in cases where the upstream user also performs replays, it can assign the same trace ID to all the instances of the same replayed message).

      • clearTraceId

         AuthenticatedMessageHeader.Builder clearTraceId()

        Clears the value of the 'traceId' field. A trace identifier. The semantics of this field can vary based on the use-case of the upstream user, but it can be used to trace together multiple instances of the same message (e.g. in cases where the upstream user also performs replays, it can assign the same trace ID to all the instances of the same replayed message).

      • hasSubsystem

         boolean hasSubsystem()

        Checks whether the 'subsystem' field has been set. This value identifies the upstream user of the p2p layer that this message is sent from and should be received by. It can be used to filter incoming messages from the p2p layer and process only the ones destined for a specific system.

      • clearSubsystem

         AuthenticatedMessageHeader.Builder clearSubsystem()

        Clears the value of the 'subsystem' field. This value identifies the upstream user of the p2p layer that this message is sent from and should be received by. It can be used to filter incoming messages from the p2p layer and process only the ones destined for a specific system.

      • hasStatusFilter

         boolean hasStatusFilter()

        Checks whether the 'statusFilter' field has been set. Indicates what type of membership information should be used for P2P communication: pending, active, active or suspended. Active value must be used by non-MGM services. Only MGM services will use other options

      • clearStatusFilter

         AuthenticatedMessageHeader.Builder clearStatusFilter()

        Clears the value of the 'statusFilter' field. Indicates what type of membership information should be used for P2P communication: pending, active, active or suspended. Active value must be used by non-MGM services. Only MGM services will use other options