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 Detail

      • getMaximumMessageSize

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

        int getBillableMessageSize()
        Returns:
        The size of a billable message unit 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.