Class WebSocketEventStoreClient
- java.lang.Object
-
- io.fluxcapacitor.javaclient.common.websocket.AbstractWebsocketClient
-
- io.fluxcapacitor.javaclient.persisting.eventsourcing.client.WebSocketEventStoreClient
-
- All Implemented Interfaces:
EventStoreClient,AutoCloseable
public class WebSocketEventStoreClient extends AbstractWebsocketClient implements EventStoreClient
-
-
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
-
-
Constructor Summary
Constructors Constructor Description WebSocketEventStoreClient(String endPointUrl, int backlogSize, WebSocketClient.Properties properties)WebSocketEventStoreClient(String endPointUrl, WebSocketClient.Properties properties)WebSocketEventStoreClient(URI endPointUri, int backlogSize, int fetchBatchSize, WebSocketClient.Properties properties)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description CompletableFuture<Boolean>deleteEvents(String aggregateId)Stream<SerializedMessage>getEvents(String aggregateId, long lastSequenceNumber)AwaitablestoreEvents(String aggregateId, String domain, long lastSequenceNumber, List<SerializedMessage> events)-
Methods inherited from class io.fluxcapacitor.javaclient.common.websocket.AbstractWebsocketClient
close, close, getSession, isClosed, onClose, onError, onMessage, retryOutstandingRequests, send, sendRequest, sendRequestAndWait
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface io.fluxcapacitor.javaclient.persisting.eventsourcing.client.EventStoreClient
close, getEvents
-
-
-
-
Constructor Detail
-
WebSocketEventStoreClient
public WebSocketEventStoreClient(String endPointUrl, WebSocketClient.Properties properties)
-
WebSocketEventStoreClient
public WebSocketEventStoreClient(String endPointUrl, int backlogSize, WebSocketClient.Properties properties)
-
WebSocketEventStoreClient
public WebSocketEventStoreClient(URI endPointUri, int backlogSize, int fetchBatchSize, WebSocketClient.Properties properties)
-
-
Method Detail
-
storeEvents
public Awaitable storeEvents(String aggregateId, String domain, long lastSequenceNumber, List<SerializedMessage> events)
- Specified by:
storeEventsin interfaceEventStoreClient
-
getEvents
public Stream<SerializedMessage> getEvents(String aggregateId, long lastSequenceNumber)
- Specified by:
getEventsin interfaceEventStoreClient
-
deleteEvents
public CompletableFuture<Boolean> deleteEvents(String aggregateId)
- Specified by:
deleteEventsin interfaceEventStoreClient
-
-