public class ProxyRemoteService extends Object implements RemoteService
| Modifier and Type | Field and Description |
|---|---|
protected ROPConnector |
ropConnector |
protected ROPSerializationService |
serializationService |
| Constructor and Description |
|---|
ProxyRemoteService(ROPSerializationService serializationService,
ROPConnector ropConnector) |
| Modifier and Type | Method and Description |
|---|---|
void |
close()
Close remote service resources.
|
RemoteSession |
establishSession()
Establishes a dedicated session with Cayenne DataChannel, returning session id.
|
RemoteSession |
establishSharedSession(String name)
Creates a new session with the specified or joins an existing one.
|
Object |
processMessage(ClientMessage message)
Processes message on a remote server, returning the result of such processing.
|
protected ROPSerializationService serializationService
protected ROPConnector ropConnector
public ProxyRemoteService(ROPSerializationService serializationService, ROPConnector ropConnector)
public RemoteSession establishSession() throws RemoteException
RemoteServiceestablishSession in interface RemoteServiceRemoteExceptionpublic RemoteSession establishSharedSession(String name) throws RemoteException
RemoteServiceestablishSharedSession in interface RemoteServiceRemoteExceptionpublic Object processMessage(ClientMessage message) throws RemoteException, Throwable
RemoteServiceprocessMessage in interface RemoteServiceRemoteExceptionThrowablepublic void close()
throws RemoteException
RemoteServiceclose in interface RemoteServiceRemoteExceptionCopyright © 2001–2023 Apache Cayenne. All rights reserved.