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, WebSocketClient.ClientConfig clientConfig) WebSocketEventStoreClient(URI endPointUri, int fetchBatchSize, WebSocketClient.ClientConfig clientConfig) WebSocketEventStoreClient(URI endPointUri, int fetchBatchSize, WebSocketClient.ClientConfig clientConfig, boolean sendMetrics) -
Method Summary
Modifier and TypeMethodDescriptiondeleteEvents(String aggregateId, Guarantee guarantee) getAggregateIds(GetAggregateIds request) getRelationships(GetRelationships request) repairRelationships(RepairRelationships request) storeEvents(String aggregateId, List<SerializedMessage> events, boolean storeOnly, Guarantee guarantee) updateRelationships(UpdateRelationships request) Methods inherited from class io.fluxcapacitor.javaclient.common.websocket.AbstractWebsocketClient
close, close, handleResult, metricsMetadata, onClose, onError, onMessage, retryOutstandingRequests, send, sendAndWait, sendCommand, 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, deleteEvents, getAggregatesFor, getEvents, getEvents, getRelationships, storeEvents
-
Constructor Details
-
WebSocketEventStoreClient
-
WebSocketEventStoreClient
public WebSocketEventStoreClient(URI endPointUri, int fetchBatchSize, WebSocketClient.ClientConfig clientConfig) -
WebSocketEventStoreClient
public WebSocketEventStoreClient(URI endPointUri, int fetchBatchSize, WebSocketClient.ClientConfig clientConfig, boolean sendMetrics)
-
-
Method Details
-
storeEvents
public CompletableFuture<Void> storeEvents(String aggregateId, List<SerializedMessage> events, boolean storeOnly, Guarantee guarantee) - Specified by:
storeEventsin interfaceEventStoreClient
-
getEvents
public AggregateEventStream<SerializedMessage> getEvents(String aggregateId, long lastSequenceNumber, int maxSize) - Specified by:
getEventsin interfaceEventStoreClient
-
updateRelationships
- Specified by:
updateRelationshipsin interfaceEventStoreClient
-
repairRelationships
- Specified by:
repairRelationshipsin interfaceEventStoreClient
-
getAggregateIds
- Specified by:
getAggregateIdsin interfaceEventStoreClient
-
getRelationships
- Specified by:
getRelationshipsin interfaceEventStoreClient
-
deleteEvents
- Specified by:
deleteEventsin interfaceEventStoreClient
-