Added WriteProxy with creation method in Client, added caches to LocalDb

This commit is contained in:
2020-02-06 21:03:08 +01:00
parent cdef310a69
commit bf38d2f19f
5 changed files with 155 additions and 13 deletions

View File

@@ -118,6 +118,17 @@ public class Client implements Closeable {
return cache;
}
/**
* Creates a new write proxy that uses this client to communicate with the
* server.
*
* @param localDb the local database that the write proxy will use to access
* caches
* @return a new write proxy
* @since Envoy Client v0.3-alpha
*/
public WriteProxy createWriteProxy(LocalDb localDb) { return new WriteProxy(this, localDb); }
/**
* Sends a message to the server. The message's status will be incremented once
* it was delivered successfully.