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
RemoteService
establishSession
in interface RemoteService
RemoteException
public RemoteSession establishSharedSession(String name) throws RemoteException
RemoteService
establishSharedSession
in interface RemoteService
RemoteException
public Object processMessage(ClientMessage message) throws RemoteException, Throwable
RemoteService
processMessage
in interface RemoteService
RemoteException
Throwable
public void close() throws RemoteException
RemoteService
close
in interface RemoteService
RemoteException
Copyright © 2001–2023 Apache Cayenne. All rights reserved.