Enum JerseyPublisher.PublisherStrategy

    • Enum Constant Detail

      • BLOCKING

        public static final JerseyPublisher.PublisherStrategy BLOCKING
        Blocking publisher strategy - tries to deliver to all subscribers regardless the cost. The thread is blocked uninterruptibly while resources for any subscriber are unavailable. This strategy comes with a risk of thread exhaustion, that will lead to publisher being completely blocked by slow or incorrectly implemented subscribers.
      • BEST_EFFORT

        public static final JerseyPublisher.PublisherStrategy BEST_EFFORT
        Best effort publisher strategy - tries to deliver to all subscribers if possible without blocking the processing. If the buffer is full, publisher invokes onError() and cancels subscription on a subscriber, that is not capable of read the messages at a speed sufficient to unblock the processing.
    • Method Detail

      • values

        public static JerseyPublisher.PublisherStrategy[] values()
        Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:
        for (JerseyPublisher.PublisherStrategy c : JerseyPublisher.PublisherStrategy.values())
            System.out.println(c);
        
        Returns:
        an array containing the constants of this enum type, in the order they are declared
      • valueOf

        public static JerseyPublisher.PublisherStrategy valueOf​(String name)
        Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)
        Parameters:
        name - the name of the enum constant to be returned.
        Returns:
        the enum constant with the specified name
        Throws:
        IllegalArgumentException - if this enum type has no constant with the specified name
        NullPointerException - if the argument is null