public class HttpClientConnection extends BaseConnection
logger, messageId| Constructor and Description |
|---|
HttpClientConnection(RemoteService remoteService,
String sharedSession) |
| Modifier and Type | Method and Description |
|---|---|
protected void |
beforeSendMessage(ClientMessage message)
Called before logging the beginning of message processing.
|
protected void |
connect() |
protected EventBridge |
createServerEventBridge(RemoteSession session)
Creates an EventBridge that will listen for server events.
|
protected Object |
doSendMessage(ClientMessage message)
The worker method invoked to process message.
|
EventBridge |
getServerEventBridge()
Returns an EventBridge that receives remote server events.
|
RemoteSession |
getSession() |
void |
shutdown() |
getProcessedMessagesCount, sendMessagepublic HttpClientConnection(RemoteService remoteService, String sharedSession)
public RemoteSession getSession()
protected void beforeSendMessage(ClientMessage message) throws CayenneRuntimeException
BaseConnectionbeforeSendMessage in class BaseConnectionCayenneRuntimeExceptionprotected Object doSendMessage(ClientMessage message) throws CayenneRuntimeException
BaseConnectiondoSendMessage in class BaseConnectionCayenneRuntimeExceptionpublic EventBridge getServerEventBridge() throws CayenneRuntimeException
ClientConnectionCayenneRuntimeException@BeforeScopeEnd public void shutdown() throws RemoteException
RemoteExceptionprotected void connect()
protected EventBridge createServerEventBridge(RemoteSession session) throws CayenneRuntimeException
CayenneRuntimeException - if EventBridge startup fails for any reason.Copyright © 2001–2023 Apache Cayenne. All rights reserved.