@groovy.transform.CompileStatic @groovy.util.logging.Slf4j class RxRestDatastoreClient extends AbstractRxDatastoreClient
An RxGORM implementation that backs onto a backend REST server
Modifiers | Name | Description |
---|---|---|
protected boolean |
allowBlockingOperations |
Fields inherited from class | Fields |
---|---|
class AbstractRxDatastoreClient |
mappingContext |
Type | Name and description |
---|---|
java.nio.charset.Charset |
charset The encoding to use |
org.bson.codecs.configuration.CodecRegistry |
codecRegistry The org.bson.codecs.configuration.CodecRegistry |
io.reactivex.netty.client.ConnectionProviderFactory |
connectionProviderFactory The io.reactivex.netty.client.ConnectionProviderFactory to use to create connections |
java.util.Set<java.lang.String> |
defaultParameterNames The default allowable set of parameter names |
HttpMethod |
defaultUpdateMethod The default method to use for updates. |
java.lang.String |
expandParameter The name of the expand parameter to use |
java.util.Observable<io.reactivex.netty.client.Host> |
hosts The default client host to connect to |
java.util.List<RequestInterceptor> |
interceptors The interceptors to use |
boolean |
isSecure Whether communication is over a security HTTPS connection |
io.netty.handler.logging.LogLevel |
loggerLevel The default log level |
java.lang.String |
loggerName The default log level |
java.lang.String |
maxParameter The name of the max parameter to use |
java.lang.String |
offsetParameter The name of the offset parameter to use |
java.lang.String |
orderParameter The name of the order parameter to use |
java.lang.String |
password The password to use for BASIC auth |
java.util.List<java.net.Proxy> |
proxies The proxies to use to connect |
java.lang.String |
queryParameter The name of the query parameter to use |
java.lang.Class<? extends SimpleRxRestQuery> |
queryType The query type to use |
int |
readTimeout The default read timeout |
RxHttpClientBuilder |
rxHttpClientBuilder A low level client for non entity related operations |
RestConnectionSourceSettings |
settings |
java.lang.String |
sortParameter The name of the sort parameter to use |
io.netty.handler.ssl.SslContext |
sslContext |
io.netty.handler.ssl.SslProvider |
sslProvider The SSL provider |
long |
sslSessionCacheSize The default session cache size |
long |
sslSessionTimeout The SSL timeout period |
javax.net.ssl.TrustManagerFactory |
sslTrustManagerFactory The default trust manager factory |
java.lang.String |
username The username to use for BASIC auth |
Constructor and description |
---|
RxRestDatastoreClient
(ConnectionSources<io.reactivex.netty.client.ConnectionProviderFactory, RestConnectionSourceSettings> connectionSources, RestClientMappingContext mappingContext) |
RxRestDatastoreClient
(ConnectionSources<io.reactivex.netty.client.ConnectionProviderFactory, RestConnectionSourceSettings> connectionSources, java.lang.Class... classes) |
RxRestDatastoreClient
(java.util.List<java.lang.String> hosts, org.springframework.core.env.PropertyResolver configuration, java.lang.Class... classes) |
RxRestDatastoreClient
(java.util.List<java.lang.String> hosts, java.lang.Class... classes) |
RxRestDatastoreClient
(java.lang.String host, org.springframework.core.env.PropertyResolver configuration, java.lang.Class... classes) |
RxRestDatastoreClient
(java.lang.String host, java.lang.Class... classes) |
RxRestDatastoreClient
(org.springframework.core.env.PropertyResolver configuration, java.lang.Class... classes) |
RxRestDatastoreClient
(java.lang.Class... classes) |
Type Params | Return Type | Name and description |
---|---|---|
|
java.util.Observable<java.lang.Number> |
batchDelete(BatchOperation operation) |
|
java.util.Observable<java.lang.Number> |
batchWrite(BatchOperation operation) |
|
protected io.reactivex.netty.protocol.http.client.HttpClient<io.netty.buffer.ByteBuf, io.netty.buffer.ByteBuf> |
configureProxy(io.reactivex.netty.protocol.http.client.HttpClient<io.netty.buffer.ByteBuf, io.netty.buffer.ByteBuf> httpClient) Configures any java.net.Proxy instances for the client |
|
protected RxRestDatastoreClient |
createChildClient(SingletonConnectionSources<io.reactivex.netty.client.ConnectionProviderFactory, RestConnectionSourceSettings> singletonConnectionSources) |
|
protected java.util.Observable<io.netty.buffer.ByteBuf> |
createContentWriteObservable(RestEndpointPersistentEntity restEndpointPersistentEntity, org.bson.codecs.Codec codec, EntityOperation entityOp) |
|
protected static InMemoryConnectionSources<io.reactivex.netty.client.ConnectionProviderFactory, RestConnectionSourceSettings> |
createDefaultConnectionSourcesForHosts(java.util.List<java.lang.String> hosts, org.springframework.core.env.PropertyResolver configuration) |
|
Query |
createEntityQuery(PersistentEntity entity, QueryState queryState) |
|
Query |
createEntityQuery(PersistentEntity entity, QueryState queryState, java.util.Map arguments) |
|
io.reactivex.netty.protocol.http.client.HttpClient<io.netty.buffer.ByteBuf, io.netty.buffer.ByteBuf> |
createHttpClient(java.util.Map<java.lang.String, java.lang.Object> arguments) |
|
RxRestGormInstanceApi |
createInstanceApi(PersistentEntity entity, java.lang.String connectionSourceName) |
|
protected static RestClientMappingContext |
createMappingContext(org.springframework.core.env.PropertyResolver configuration, java.lang.Class... classes) |
|
Query |
createQuery(java.lang.Class type, com.damnhandy.uri.template.UriTemplate uriTemplate, QueryState queryState, java.util.Map arguments = Collections.emptyMap() |
|
protected static java.util.List<java.net.SocketAddress> |
createServerSocketAddresses(org.springframework.core.env.PropertyResolver configuration) |
|
RxRestGormStaticApi |
createStaticApi(PersistentEntity entity, java.lang.String connectionSourceName) |
|
void |
doClose() |
|
protected java.lang.String |
expandUri(com.damnhandy.uri.template.UriTemplate uriTemplate, EntityReflector entityReflector, java.lang.Object object) |
|
java.io.Serializable |
generateIdentifier(PersistentEntity entity, java.lang.Object instance, EntityReflector reflector) |
<T> |
org.bson.codecs.Codec<T> |
get(java.lang.Class<T> clazz, org.bson.codecs.configuration.CodecRegistry registry) |
|
RestClientMappingContext |
getMappingContext() |
|
RxHttpClientBuilder |
getNativeInterface() |
|
protected void |
initDefaultConverters(RestClientMappingContext mappingContext) |
|
protected void |
initialize(RestClientMappingContext mappingContext) |
|
boolean |
isAllowBlockingOperations() |
|
java.util.Observable<io.reactivex.netty.protocol.http.client.HttpClientResponse> |
prepareRequest(io.reactivex.netty.protocol.http.client.HttpClientRequest<io.netty.buffer.ByteBuf, io.netty.buffer.ByteBuf> httpClientRequest, InterceptorContext context) |
The encoding to use
The org.bson.codecs.configuration.CodecRegistry
The io.reactivex.netty.client.ConnectionProviderFactory to use to create connections
The default allowable set of parameter names
The default method to use for updates. Defaults to PUT
The name of the expand parameter to use
The default client host to connect to
The interceptors to use
Whether communication is over a security HTTPS connection
The default log level
The default log level
The name of the max parameter to use
The name of the offset parameter to use
The name of the order parameter to use
The password to use for BASIC auth
The proxies to use to connect
The name of the query parameter to use
The query type to use
The default read timeout
A low level client for non entity related operations
The name of the sort parameter to use
The SSL provider
The default session cache size
The SSL timeout period
The default trust manager factory
The username to use for BASIC auth
Configures any java.net.Proxy instances for the client
httpClient
- The client