org.apache.nutch.publisher.rabbitmq

## Class RabbitMQPublisherImpl

- java.lang.Object
- - org.apache.nutch.publisher.rabbitmq.RabbitMQPublisherImpl

- All Implemented Interfaces:
    Configurable, Pluggable, NutchPublisher

      public class RabbitMQPublisherImpl
      extends Object
      implements NutchPublisher

- - ### Field Summary

    - ### Fields inherited from interface org.apache.nutch.publisher.NutchPublisher

      `X_POINT_ID`

  - ### Constructor Summary

    Constructors
    Constructor and Description
    `RabbitMQPublisherImpl()`

  - ### Method Summary

    All Methods Instance Methods Concrete Methods
    Modifier and Type | Method and Description
    --- | ---
    `Configuration` | `getConf()`
    `void` | `publish(Object event, Configuration conf)` This method publishes the event.
    `void` | `setConf(Configuration arg0)`
    `boolean` | `setConfig(Configuration conf)` Use implementation specific configurations

    - ### Methods inherited from class java.lang.Object

      `clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait`

- - ### Constructor Detail

    - #### RabbitMQPublisherImpl

          public RabbitMQPublisherImpl()

  - ### Method Detail

    - #### setConfig

          public boolean setConfig(Configuration conf)

      Description copied from interface: `NutchPublisher`
      Use implementation specific configurations
      Specified by:
        `setConfig` in interface `NutchPublisher`
      Parameters:
        `conf` - `Configuration` to be used

    - #### publish

          public void publish(Object event,
                              Configuration conf)

      Description copied from interface: `NutchPublisher`
      This method publishes the event. Make sure that the event is a Java POJO to avoid Jackson JSON conversion errors. Currently we use the FetcherThreadEvent
      Specified by:
        `publish` in interface `NutchPublisher`

    - #### setConf

          public void setConf(Configuration arg0)

      Specified by:
        `setConf` in interface `Configurable`

    - #### getConf

          public Configuration getConf()

      Specified by:
        `getConf` in interface `Configurable`

Copyright © 2020 The Apache Software Foundation