com.infoscape.proteus
Interface MessageSink

All Superinterfaces:
MessageHandler, Transactional
All Known Subinterfaces:
Speaker
All Known Implementing Classes:
FilteredSink, Router, SinkImpl

public interface MessageSink
extends MessageHandler

A MessageSink is something that can accept a message. Examples would be a message queue, a database table, an email address, or a file.


Method Summary
 void putMessage(java.lang.Object msg)
          This method takes an Object as parameter.
 
Methods inherited from interface com.infoscape.proteus.MessageHandler
disconnect, getConnection, reconnect
 
Methods inherited from interface com.infoscape.proteus.Transactional
commit, rollback, setSyncPoint
 

Method Detail

putMessage

public void putMessage(java.lang.Object msg)
                throws java.lang.Exception
This method takes an Object as parameter. In real life this is usually a string, but we have found that the flexibility gained by declaring this as an Object can be very useful.

Parameters:
msg -
Throws:
java.lang.Exception