|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.apache.cayenne.remote.BaseConnection
public abstract class BaseConnection
A common base class for concrete ClientConnection implementations. Provides message logging functionality via commons-logging.
| Field Summary | |
|---|---|
protected org.apache.commons.logging.Log |
logger
|
protected long |
messageId
|
| Constructor Summary | |
|---|---|
protected |
BaseConnection()
Default constructor that initializes logging and a single threaded EventManager. |
| Method Summary | |
|---|---|
protected abstract void |
beforeSendMessage(ClientMessage message)
Called before logging the beginning of message processing. |
protected abstract java.lang.Object |
doSendMessage(ClientMessage message)
The worker method invoked to process message. |
long |
getProcessedMessagesCount()
Returns a count of processed messages since the beginning of life of this connector. |
java.lang.Object |
sendMessage(ClientMessage message)
Invokes 'beforeSendMessage' on self, then invokes 'doSendMessage'. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Methods inherited from interface org.apache.cayenne.remote.ClientConnection |
|---|
getServerEventBridge |
| Field Detail |
|---|
protected org.apache.commons.logging.Log logger
protected long messageId
| Constructor Detail |
|---|
protected BaseConnection()
| Method Detail |
|---|
public java.lang.Object sendMessage(ClientMessage message)
throws CayenneRuntimeException
sendMessage in interface ClientConnectionCayenneRuntimeExceptionpublic long getProcessedMessagesCount()
protected abstract void beforeSendMessage(ClientMessage message)
throws CayenneRuntimeException
CayenneRuntimeException
protected abstract java.lang.Object doSendMessage(ClientMessage message)
throws CayenneRuntimeException
CayenneRuntimeException
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||