Class NoOpProducer

All Implemented Interfaces:
Closeable, AutoCloseable, ClusterSingleton, ClusterEventProducer

public final class NoOpProducer extends ClusterEventProducerBase
No-op implementation of ClusterEventProducer. This implementation doesn't generate any events.
  • Field Details

  • Constructor Details

  • Method Details

    • getSupportedEventTypes

      public Set<ClusterEvent.EventType> getSupportedEventTypes()
      Specified by:
      getSupportedEventTypes in class ClusterEventProducerBase
    • start

      public void start() throws Exception
      Description copied from interface: ClusterSingleton
      Start the operation of the component. Initially this method should set the state to STARTING, and on success it should set the state to RUNNING.
      Throws:
      Exception - on startup errors. The component should revert to the STOPPED state.
    • stop

      public void stop()
      Description copied from interface: ClusterSingleton
      Stop the operation of the component. Initially this method should set the state to STOPPING, and on return it should set the state to STOPPED. Components should also avoid holding any resource when in STOPPED state.