public class ClientDelegate extends Object
| Constructor and Description |
|---|
ClientDelegate()
Instantiates a new delegator and delegates the operations to the global database.
|
ClientDelegate(ClientTO client)
Instantiates a new delegator and delegates the operations to the client database.
|
| Modifier and Type | Method and Description |
|---|---|
<T> T |
execute(ClientDelegateCallback<T> callback)
Executes operations of the callback, makes sure that we are on the right client (client or
global).
|
<T> T |
execute(GlobalClientDelegateCallback<T> callback)
Executes operations of the callback on the global client.
|
public ClientDelegate()
public ClientDelegate(ClientTO client)
client - the clientpublic <T> T execute(ClientDelegateCallback<T> callback) throws Exception
T - Type of the result.callback - the callback operationsException - in case of an errorpublic <T> T execute(GlobalClientDelegateCallback<T> callback) throws Exception
T - Type of the result.callback - the callbackException - in case of an errorCopyright © 2019 Communote team. All rights reserved.