Class AddElementsFromKafka

    • Field Detail

      • DEFAULT_CONSUME_AS

        public static final Class<String> DEFAULT_CONSUME_AS
    • Constructor Detail

      • AddElementsFromKafka

        public AddElementsFromKafka()
    • Method Detail

      • getTopic

        public String getTopic()
      • setTopic

        public void setTopic​(String topic)
      • getGroupId

        public String getGroupId()
      • setGroupId

        public void setGroupId​(String groupId)
      • setParallelism

        public void setParallelism​(Integer parallelism)
      • getParallelism

        public Integer getParallelism()
      • getBootstrapServers

        public String[] getBootstrapServers()
      • setBootstrapServers

        public void setBootstrapServers​(String... bootstrapServers)
      • isValidate

        public boolean isValidate()
        Specified by:
        isValidate in interface Validatable
        Returns:
        true if the operation should be validated. Otherwise false.
      • setValidate

        public void setValidate​(boolean validate)
        Specified by:
        setValidate in interface Validatable
        Parameters:
        validate - true if the operation should be validated. Otherwise false.
      • isSkipInvalidElements

        public boolean isSkipInvalidElements()
        Specified by:
        isSkipInvalidElements in interface Validatable
        Returns:
        true if invalid elements should be skipped. Otherwise false if the operation should fail.
      • setSkipInvalidElements

        public void setSkipInvalidElements​(boolean skipInvalidElements)
        Specified by:
        setSkipInvalidElements in interface Validatable
        Parameters:
        skipInvalidElements - true if invalid elements should be skipped. Otherwise false if the operation should fail.
      • getConsumeAs

        public Class<?> getConsumeAs()
      • setConsumeAs

        public void setConsumeAs​(Class<?> consumeAs)
      • getOptions

        public Map<String,​String> getOptions()
        Specified by:
        getOptions in interface Operation
        Returns:
        the operation options. This may contain store specific options such as authorisation strings or and other properties required for the operation to be executed. Note these options will probably not be interpreted in the same way by every store implementation.
      • setOptions

        public void setOptions​(Map<String,​String> options)
        Specified by:
        setOptions in interface Operation
        Parameters:
        options - the operation options. This may contain store specific options such as authorisation strings or and other properties required for the operation to be executed. Note these options will probably not be interpreted in the same way by every store implementation.
      • validate

        public uk.gov.gchq.koryphe.ValidationResult validate()
        Description copied from interface: Operation
        Validates an operation. This should be used to validate that fields have been be configured correctly. By default no validation is applied. Override this method to implement validation.
        Specified by:
        validate in interface Operation
        Returns:
        validation result.
      • shallowClone

        public AddElementsFromKafka shallowClone()
        Description copied from interface: Operation
        Operation implementations should ensure a ShallowClone method is implemented. Performs a shallow clone. Creates a new instance and copies the fields across. It does not clone the fields. If the operation contains nested operations, these must also be cloned.
        Specified by:
        shallowClone in interface Operation
        Returns:
        shallow clone