public class NonReactiveSupportWrapper extends Object implements ReactiveTemplateSupport
TemplateSupport methods to adapt them to ReactiveTemplateSupport.| Constructor and Description |
|---|
NonReactiveSupportWrapper(TemplateSupport support) |
| Modifier and Type | Method and Description |
|---|---|
reactor.core.publisher.Mono<Object> |
applyUpdatedCas(Object entity,
CouchbaseDocument converted,
long cas) |
reactor.core.publisher.Mono<Object> |
applyUpdatedId(Object entity,
Object id) |
<T> reactor.core.publisher.Mono<T> |
decodeEntity(String id,
String source,
long cas,
Class<T> entityClass,
String scope,
String collection) |
reactor.core.publisher.Mono<CouchbaseDocument> |
encodeEntity(Object entityToEncode) |
Long |
getCas(Object entity) |
String |
getJavaNameForEntity(Class<?> clazz) |
void |
maybeEmitEvent(CouchbaseMappingEvent<?> event) |
public NonReactiveSupportWrapper(TemplateSupport support)
public reactor.core.publisher.Mono<CouchbaseDocument> encodeEntity(Object entityToEncode)
encodeEntity in interface ReactiveTemplateSupportpublic <T> reactor.core.publisher.Mono<T> decodeEntity(String id, String source, long cas, Class<T> entityClass, String scope, String collection)
decodeEntity in interface ReactiveTemplateSupportpublic reactor.core.publisher.Mono<Object> applyUpdatedCas(Object entity, CouchbaseDocument converted, long cas)
applyUpdatedCas in interface ReactiveTemplateSupportpublic reactor.core.publisher.Mono<Object> applyUpdatedId(Object entity, Object id)
applyUpdatedId in interface ReactiveTemplateSupportpublic Long getCas(Object entity)
getCas in interface ReactiveTemplateSupportpublic String getJavaNameForEntity(Class<?> clazz)
getJavaNameForEntity in interface ReactiveTemplateSupportpublic void maybeEmitEvent(CouchbaseMappingEvent<?> event)
maybeEmitEvent in interface ReactiveTemplateSupportCopyright © 2011–2022 Pivotal Software, Inc.. All rights reserved.