@Test void saveEventStatus() throws Exception { this.defaultStore.saveEventStatus(EVENTSTATUS); verify(this.store).saveEventStatus(EVENTSTATUS); verify(this.legacyStore).saveEventStatus(EVENTSTATUS); }
@Override public CompletableFuture<EventStatus> saveEventStatus(EventStatus status) { CompletableFuture<EventStatus> future = null; if (this.legacyStore != null) { future = this.legacyStore.saveEventStatus(status); } if (this.store != null) { future = this.store.saveEventStatus(status); } if (future == null) { future = new CompletableFuture<>(); future.completeExceptionally(new EventStreamException(NO_STORE)); } return future; }
DefaultEventStore implements EventStore, Initializable { @Override public CompletableFuture<EventStatus> saveEventStatus(EventStatus status) { CompletableFuture<EventStatus> future = null; if (this.legacyStore != null) { future = this.legacyStore.saveEventStatus(status); } if (this.store != null) { future = this.store.saveEventStatus(status); } if (future == null) { future = new CompletableFuture<>(); future.completeExceptionally(new EventStreamException(NO_STORE)); } return future; } }
DefaultEventStore implements EventStore, Initializable { @Override public CompletableFuture<EventStatus> saveEventStatus(EventStatus status) { CompletableFuture<EventStatus> future = null; if (this.legacyStore != null) { future = this.legacyStore.saveEventStatus(status); } if (this.store != null) { future = this.store.saveEventStatus(status); } if (future == null) { future = new CompletableFuture<>(); future.completeExceptionally(new EventStreamException(NO_STORE)); } return future; }  }
DefaultEventStore implements EventStore, Initializable { @Override public CompletableFuture<EventStatus> saveEventStatus(EventStatus status) { CompletableFuture<EventStatus> future = null; if (this.legacyStore != null) { future = this.legacyStore.saveEventStatus(status); } if (this.store != null) { future = this.store.saveEventStatus(status); } if (future == null) { future = new CompletableFuture<>(); future.completeExceptionally(new EventStreamException(NO_STORE)); } return future; }  @Override void initialize(); @Override CompletableFuture<Event> saveEvent(Event event); @Override CompletableFuture<Event> prefilterEvent(Event event); @Override CompletableFuture<Optional<Event>> deleteEvent(String eventId); @Override CompletableFuture<Optional<Event>> deleteEvent(Event event); @Override CompletableFuture<EventStatus> saveEventStatus(EventStatus status); @Override CompletableFuture<EventStatus> saveMailEntityEvent(EntityEvent event); @Override CompletableFuture<Optional<EventStatus>> deleteEventStatus(EventStatus status); @Override CompletableFuture<Void> deleteEventStatuses(String entityId, Date date); @Override CompletableFuture<Optional<EventStatus>> deleteMailEntityEvent(EntityEvent event); @Override Optional<Event> getEvent(String eventId); @Override EventSearchResult search(EventQuery query); @Override EventSearchResult search(EventQuery query, Set<String> fields); }
DefaultEventStore implements EventStore, Initializable { @Override public CompletableFuture<EventStatus> saveEventStatus(EventStatus status) { CompletableFuture<EventStatus> future = null; if (this.legacyStore != null) { future = this.legacyStore.saveEventStatus(status); } if (this.store != null) { future = this.store.saveEventStatus(status); } if (future == null) { future = new CompletableFuture<>(); future.completeExceptionally(new EventStreamException(NO_STORE)); } return future; }  @Override void initialize(); @Override CompletableFuture<Event> saveEvent(Event event); @Override CompletableFuture<Event> prefilterEvent(Event event); @Override CompletableFuture<Optional<Event>> deleteEvent(String eventId); @Override CompletableFuture<Optional<Event>> deleteEvent(Event event); @Override CompletableFuture<EventStatus> saveEventStatus(EventStatus status); @Override CompletableFuture<EventStatus> saveMailEntityEvent(EntityEvent event); @Override CompletableFuture<Optional<EventStatus>> deleteEventStatus(EventStatus status); @Override CompletableFuture<Void> deleteEventStatuses(String entityId, Date date); @Override CompletableFuture<Optional<EventStatus>> deleteMailEntityEvent(EntityEvent event); @Override Optional<Event> getEvent(String eventId); @Override EventSearchResult search(EventQuery query); @Override EventSearchResult search(EventQuery query, Set<String> fields);  }