public abstract class Config<BackendType extends Backend>
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
com.squareup.okhttp.OkHttpClient |
client |
java.lang.String |
fileSavePath |
long |
id |
java.lang.String |
serverUrl |
Modifier | Constructor and Description |
---|---|
|
Config(java.lang.String fileSavePath,
java.lang.String url) |
protected |
Config(java.lang.String fileSavePath,
java.lang.String url,
java.lang.Class<ModuleType> moduleClass) |
Modifier and Type | Method and Description |
---|---|
BackendModule |
getModule() |
abstract java.lang.Class<BackendType> |
getModuleType()
Returns a concrete class type used to initialize the specific Backend class.
|
rx.Scheduler |
observeOn() |
Config |
observeOn(rx.Scheduler observeOn)
Sets @see scheduler Divide callbacks will run on
|
<ModuleType extends BackendModule> |
setModule(java.lang.Class<ModuleType> moduleClass) |
rx.Scheduler |
subscribeOn() |
Config |
subscribeOn(rx.Scheduler subscribeOn)
Sets @see schedule Divide operations will run on
|
java.lang.String |
toString() |
public java.lang.String fileSavePath
public java.lang.String serverUrl
public final long id
public final com.squareup.okhttp.OkHttpClient client
public Config(java.lang.String fileSavePath, java.lang.String url)
fileSavePath
- base file storage location to be used by Divide.url
- url used to connect to remote Divide server.protected Config(java.lang.String fileSavePath, java.lang.String url, java.lang.Class<ModuleType> moduleClass)
fileSavePath
- base file storage location to be used by Divide.url
- url used to connect to remote Divide server.moduleClass
- module class type to be used by Divide.public abstract java.lang.Class<BackendType> getModuleType()
public Config observeOn(rx.Scheduler observeOn)
observeOn
- scheduler to which Divide callbacks will run onpublic Config subscribeOn(rx.Scheduler subscribeOn)
subscribeOn
- scheduler to which Divide operations will run onpublic rx.Scheduler observeOn()
public rx.Scheduler subscribeOn()
public final BackendModule getModule()
public final <ModuleType extends BackendModule> void setModule(java.lang.Class<ModuleType> moduleClass)
public java.lang.String toString()
toString
in class java.lang.Object