Class DuplicateSubscribeException

All Implemented Interfaces:
RejectedSubscribeError, Serializable

public final class DuplicateSubscribeException extends RejectedSubscribeException
Used in scenarios where a subscribe to an asynchronous source is subscribed to, but there is already a subscriber and the source doesn't support multiple subscribers.
See Also:
  • Constructor Details

    • DuplicateSubscribeException

      public DuplicateSubscribeException(@Nullable Object existingSubscriber, Object attemptedSubscriber)
      Create a new instance.
      Parameters:
      existingSubscriber - The existing subscriber, or state that prevented the subscribe from completing.
      attemptedSubscriber - The subscriber which failed to subscribe.
    • DuplicateSubscribeException

      public DuplicateSubscribeException(@Nullable Object existingSubscriber, Object attemptedSubscriber, String message)
      Create a new instance.
      Parameters:
      existingSubscriber - The existing subscriber, or state that prevented the subscribe from completing.
      attemptedSubscriber - The subscriber which failed to subscribe.
      message - An optional message clarifying the situation.