Class WebSocketEventStoreClient
java.lang.Object
io.fluxcapacitor.javaclient.common.websocket.AbstractWebsocketClient
io.fluxcapacitor.javaclient.persisting.eventsourcing.client.WebSocketEventStoreClient
- All Implemented Interfaces:
EventStoreClient,AutoCloseable
-
Nested Class Summary
Nested classes/interfaces inherited from class io.fluxcapacitor.javaclient.common.websocket.AbstractWebsocketClient
AbstractWebsocketClient.WebSocketRequest -
Field Summary
Fields inherited from class io.fluxcapacitor.javaclient.common.websocket.AbstractWebsocketClient
defaultObjectMapper, defaultWebSocketContainer -
Constructor Summary
ConstructorsConstructorDescriptionWebSocketEventStoreClient(String endPointUrl, int backlogSize, WebSocketClient.ClientConfig clientConfig) WebSocketEventStoreClient(String endPointUrl, WebSocketClient.ClientConfig clientConfig) WebSocketEventStoreClient(URI endPointUri, int backlogSize, int fetchBatchSize, WebSocketClient.ClientConfig clientConfig) -
Method Summary
Modifier and TypeMethodDescriptiondeleteEvents(String aggregateId) getAggregateIds(GetAggregateIds request) storeEvents(String aggregateId, List<SerializedMessage> events, boolean storeOnly) updateRelationships(UpdateRelationships request) Methods inherited from class io.fluxcapacitor.javaclient.common.websocket.AbstractWebsocketClient
close, close, handleResult, onClose, onError, onMessage, retryOutstandingRequests, send, send, sendAndForget, sendAndWait, sendBatch, tryPublishMetricsMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface io.fluxcapacitor.javaclient.persisting.eventsourcing.client.EventStoreClient
close, getAggregateIds, getEvents
-
Constructor Details
-
WebSocketEventStoreClient
-
WebSocketEventStoreClient
public WebSocketEventStoreClient(String endPointUrl, int backlogSize, WebSocketClient.ClientConfig clientConfig) -
WebSocketEventStoreClient
public WebSocketEventStoreClient(URI endPointUri, int backlogSize, int fetchBatchSize, WebSocketClient.ClientConfig clientConfig)
-
-
Method Details
-
storeEvents
- Specified by:
storeEventsin interfaceEventStoreClient
-
getEvents
public AggregateEventStream<SerializedMessage> getEvents(String aggregateId, long lastSequenceNumber) - Specified by:
getEventsin interfaceEventStoreClient
-
updateRelationships
- Specified by:
updateRelationshipsin interfaceEventStoreClient
-
getAggregateIds
- Specified by:
getAggregateIdsin interfaceEventStoreClient
-
deleteEvents
- Specified by:
deleteEventsin interfaceEventStoreClient
-