com.db4o.messaging
Interface MessageRecipient
public interface MessageRecipient
message recipient for client/server messaging.
db4o allows using the client/server TCP connection to send
messages from the client to the server. Any object that can be
stored to a db4o database file may be used as a message.
See the sample in ../com/db4o/samples/messaging/ on how to
use the messaging feature. It is also used to stop the server
in ../com/db4o/samples/clientserver/StopServer.java
See Also:
Configuration.setMessageRecipient(MessageRecipient)
,
MessageSender
,
com.db4o.config.Configuration#getMessageSender()
,
processMessage
void processMessage(ObjectContainer con,
java.lang.Object message)
- the method called upon the arrival of messages.
- Parameters:
con
- the ObjectContainer the message was sent to.message
- the message received.