use of com.couchbase.client.core.cnc.events.io.CollectionOutdatedHandledEvent in project couchbase-jvm-clients by couchbase.
the class KeyValueMessageHandler method handleOutdatedCollection.
/**
* Helper method to redispatch a request and signal that we need to refresh the collection map.
*
* @param request the request to retry.
*/
private void handleOutdatedCollection(final KeyValueRequest<Response> request, final RetryReason retryReason) {
eventBus.publish(new CollectionOutdatedHandledEvent(request.collectionIdentifier(), retryReason, new OutdatedCollectionContext(ioContext, ioContext.core().configurationProvider().collectionMap())));
ioContext.core().configurationProvider().refreshCollectionId(request.collectionIdentifier());
RetryOrchestrator.maybeRetry(ioContext, request, retryReason);
}
Aggregations