Class ProducerEndpoint
java.lang.Object
io.fluxzero.testserver.websocket.WebsocketEndpoint
io.fluxzero.testserver.websocket.ProducerEndpoint
-
Nested Class Summary
Nested classes/interfaces inherited from class WebsocketEndpoint
WebsocketEndpoint.ClientMessage, WebsocketEndpoint.PingRegistration, WebsocketEndpoint.SessionBacklog -
Field Summary
Fields inherited from class WebsocketEndpoint
pingDelay, pingTimeout, shutDown, shuttingDown, webSocketSendTimeout -
Constructor Summary
ConstructorsConstructorDescriptionProducerEndpoint(MessageLogMaintenance maintenance, MessageType messageType, String topic) Creates a producer endpoint backed by the shared maintenance components for one message log.ProducerEndpoint(MessageLogMaintenance maintenance, MessageType messageType, String topic, CommandIdempotencyStore commandIdempotencyStore) Creates a producer endpoint backed by the shared maintenance components for one message log.ProducerEndpoint(MessageStore store) ProducerEndpoint(MessageStore store, MessageType messageType, String topic) ProducerEndpoint(MessageStore store, MessageType messageType, String topic, CommandIdempotencyStore commandIdempotencyStore) -
Method Summary
Modifier and TypeMethodDescriptionprotected booleanshouldHandleIdempotently(Command command) toString()Methods inherited from class WebsocketEndpoint
abort, createTasks, createTasks, deserializeRequest, dispatchRequest, dispatchRequest, doSendResult, findAlternativeBacklog, getClientId, getClientName, getClientSdkVersion, getCompressionAlgorithm, getNamespace, getNegotiatedSessionId, getRequestHeaders, getRuntimeVersion, getTransportFormat, handleMessage, handleMessage, newRequestStripeExecutors, onClose, onError, onMessage, onOpen, onPong, registerMetrics, schedulePing, sendPing, sendResultBatch, sendResultBatchAsync, sessionMetadata, shutDown, submitRequestTask, transportCodec
-
Constructor Details
-
ProducerEndpoint
-
ProducerEndpoint
-
ProducerEndpoint
Creates a producer endpoint backed by the shared maintenance components for one message log.- Parameters:
maintenance- the shared message log maintenance componentsmessageType- the message type exposed by this endpointtopic- the topic exposed by this endpoint, ornullfor non-topic message types
-
ProducerEndpoint
public ProducerEndpoint(MessageStore store, MessageType messageType, String topic, CommandIdempotencyStore commandIdempotencyStore) -
ProducerEndpoint
public ProducerEndpoint(MessageLogMaintenance maintenance, MessageType messageType, String topic, CommandIdempotencyStore commandIdempotencyStore) Creates a producer endpoint backed by the shared maintenance components for one message log.- Parameters:
maintenance- the shared message log maintenance componentsmessageType- the message type exposed by this endpointtopic- the topic exposed by this endpoint, ornullfor non-topic message typescommandIdempotencyStore- the idempotency store used for command handling
-
-
Method Details
-
shouldHandleIdempotently
- Overrides:
shouldHandleIdempotentlyin classWebsocketEndpoint
-
toString
-