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, sendMessage
public HttpClientConnection(RemoteService remoteService, String sharedSession)
public RemoteSession getSession()
protected void beforeSendMessage(ClientMessage message) throws CayenneRuntimeException
BaseConnection
beforeSendMessage
in class BaseConnection
CayenneRuntimeException
protected Object doSendMessage(ClientMessage message) throws CayenneRuntimeException
BaseConnection
doSendMessage
in class BaseConnection
CayenneRuntimeException
public EventBridge getServerEventBridge() throws CayenneRuntimeException
ClientConnection
CayenneRuntimeException
@BeforeScopeEnd public void shutdown() throws RemoteException
RemoteException
protected void connect()
protected EventBridge createServerEventBridge(RemoteSession session) throws CayenneRuntimeException
CayenneRuntimeException
- if EventBridge startup fails for any reason.Copyright © 2001–2019 Apache Cayenne. All rights reserved.