Class ConsumerEndpoint

java.lang.Object
io.fluxzero.testserver.websocket.WebsocketEndpoint
io.fluxzero.testserver.websocket.ConsumerEndpoint

public class ConsumerEndpoint extends WebsocketEndpoint
  • Constructor Details

    • ConsumerEndpoint

      public ConsumerEndpoint(MessageStore messageStore, MessageType messageType)
    • ConsumerEndpoint

      public ConsumerEndpoint(MessageStore messageStore, MessageType messageType, CommandIdempotencyStore commandIdempotencyStore)
    • ConsumerEndpoint

      public ConsumerEndpoint(MessageStore messageStore, MessageType messageType, String topic, CommandIdempotencyStore commandIdempotencyStore)
      Creates a consumer endpoint for a topic-specific message log.
      Parameters:
      messageStore - the message store backing the endpoint
      messageType - the message type exposed by this endpoint
      topic - the topic exposed by this endpoint
      commandIdempotencyStore - the idempotency store used for command handling
    • ConsumerEndpoint

      public ConsumerEndpoint(MessageLogMaintenance maintenance, MessageType messageType, CommandIdempotencyStore commandIdempotencyStore)
      Creates a consumer endpoint backed by shared maintenance components for one message log.
      Parameters:
      maintenance - the shared message log maintenance components
      messageType - the message type exposed by this endpoint
      commandIdempotencyStore - the idempotency store used for command handling
    • ConsumerEndpoint

      public ConsumerEndpoint(MessageLogMaintenance maintenance, MessageType messageType, String topic, CommandIdempotencyStore commandIdempotencyStore)
      Creates a consumer endpoint backed by shared maintenance components for one message log.
      Parameters:
      maintenance - the shared message log maintenance components
      messageType - the message type exposed by this endpoint
      topic - the topic exposed by this endpoint, or null for non-topic message types
      commandIdempotencyStore - the idempotency store used for command handling
    • ConsumerEndpoint

      public ConsumerEndpoint(TrackingStrategy trackingStrategy, MessageStore messageStore, PositionStore positionStore, MessageType messageType)
    • ConsumerEndpoint

      public ConsumerEndpoint(TrackingStrategy trackingStrategy, MessageStore messageStore, PositionStore positionStore, MessageType messageType, String topic)
      Creates a consumer endpoint from explicit tracking components.
      Parameters:
      trackingStrategy - the tracking strategy backing reads and claims
      messageStore - the message store backing direct reads
      positionStore - the position store backing consumer positions
      messageType - the message type exposed by this endpoint
      topic - the topic exposed by this endpoint, or null for non-topic message types
    • ConsumerEndpoint

      public ConsumerEndpoint(TrackingStrategy trackingStrategy, MessageStore messageStore, PositionStore positionStore, MessageType messageType, String topic, CommandIdempotencyStore commandIdempotencyStore)
      Creates a consumer endpoint from explicit tracking components.
      Parameters:
      trackingStrategy - the tracking strategy backing reads and claims
      messageStore - the message store backing direct reads
      positionStore - the position store backing consumer positions
      messageType - the message type exposed by this endpoint
      topic - the topic exposed by this endpoint, or null for non-topic message types
      commandIdempotencyStore - the idempotency store used for command handling
  • Method Details