Class EventStreamTaggedUnionPojoSupplier.Builder

    • Method Detail

      • defaultSdkPojoSupplier

        public EventStreamTaggedUnionPojoSupplier.Builder defaultSdkPojoSupplier​(Supplier<SdkPojo> defaultPojoSupplier)
        Registers the default SdkPojo supplier. Used when the value in the ':event-type' header does not match a registered event type (i.e. this is a new event that this version of the SDK doesn't know about).
        Parameters:
        defaultPojoSupplier - Default POJO supplier to use when event-type doesn't match a registered event type.
        Returns:
        This object for method chaining.