Interface IPublisher

  • All Superinterfaces:
    AutoCloseable, org.symphonyoss.s2.fugue.pipeline.IConsumer<IPubSubMessage>, org.symphonyoss.s2.fugue.pipeline.IRetryableConsumer<IPubSubMessage>, org.symphonyoss.s2.fugue.pipeline.IThreadSafeConsumer<IPubSubMessage>, org.symphonyoss.s2.fugue.pipeline.IThreadSafeRetryableConsumer<IPubSubMessage>

    public interface IPublisher
    extends org.symphonyoss.s2.fugue.pipeline.IThreadSafeConsumer<IPubSubMessage>
    A pubsub publisher.
    Author:
    Bruce Skingle
    • Method Summary

      All Methods Instance Methods Abstract Methods 
      Modifier and Type Method Description
      void consume​(IPubSubMessage item)
      Consume the given item.
      int getMaximumMessageSize()  
      • Methods inherited from interface org.symphonyoss.s2.fugue.pipeline.IRetryableConsumer

        close
      • Methods inherited from interface org.symphonyoss.s2.fugue.pipeline.IThreadSafeConsumer

        consume
    • Method Detail

      • getMaximumMessageSize

        int getMaximumMessageSize()
        Returns:
        The size of the largest message which can be sent in bytes.
      • consume

        void consume​(IPubSubMessage item)
        Consume the given item. A normal return from this method indicates that the item has been fully processed, and the provider can discard the item. In the event that the item cannot be processed then the implementation must throw some kind of Exception.
        Parameters:
        item - The item to be consumed.