public class LocalConnection extends BaseConnection
| Modifier and Type | Field and Description |
|---|---|
protected DataChannel |
channel |
static int |
HESSIAN_SERIALIZATION |
static int |
JAVA_SERIALIZATION |
static int |
NO_SERIALIZATION |
protected int |
serializationPolicy |
logger, messageId, readTimeout| Constructor and Description |
|---|
LocalConnection(DataChannel handler)
Creates LocalConnector with specified handler and no serialization.
|
LocalConnection(DataChannel handler,
int serializationPolicy)
Creates a LocalConnector with specified handler and serialization policy.
|
| Modifier and Type | Method and Description |
|---|---|
protected void |
beforeSendMessage(ClientMessage message)
Does nothing.
|
protected Object |
doSendMessage(ClientMessage message)
Dispatches a message to an internal handler.
|
DataChannel |
getChannel()
Returns wrapped DataChannel.
|
EventBridge |
getServerEventBridge()
Returns null.
|
boolean |
isSerializingMessages() |
getProcessedMessagesCount, getReadTimeout, sendMessage, setReadTimeoutpublic static final int NO_SERIALIZATION
public static final int JAVA_SERIALIZATION
public static final int HESSIAN_SERIALIZATION
protected DataChannel channel
protected int serializationPolicy
public LocalConnection(DataChannel handler)
public LocalConnection(DataChannel handler, int serializationPolicy)
public boolean isSerializingMessages()
public DataChannel getChannel()
public EventBridge getServerEventBridge()
protected void beforeSendMessage(ClientMessage message)
beforeSendMessage in class BaseConnectionprotected Object doSendMessage(ClientMessage message) throws CayenneRuntimeException
doSendMessage in class BaseConnectionCayenneRuntimeExceptionCopyright © 2001–2018 Apache Cayenne. All rights reserved.