Oracle Content Management SDK

oracle.ifs.adk.queue
Interface MessageProcessor

All Known Implementing Classes:
IfsMessageProcessor

public interface MessageProcessor

MessageProcessor interface is used to provide a customizable message handling feature from the InboundQueueListenerAgent. Applications developers implement this interface and provide their own handleMessage() method that would be called by the queue agent. To get a logging facility, use the class IfsMessageProcessor instead of directly implementing this interface.


Method Summary
 void handleMessage(oracle.sql.ORAData message, LibrarySession sess)
          Handle the message that is passed as parameter.
 void setServer(Server server)
          Sets the server that is using the interface.
 

Method Detail


setServer

public void setServer(Server server)
               throws IfsException
Sets the server that is using the interface. This is used to let the implementing class know about the server (or agent) that is using the class. It is up to the implementing class to decide how to make use of this information.
Parameters:
server - handle to the server
Throws:
IfsException - if the operation fails

handleMessage

public void handleMessage(oracle.sql.ORAData message,
                          LibrarySession sess)
                   throws IfsException
Handle the message that is passed as parameter.
Parameters:
message - handle to the message to be processed
sess - handle to the Library session
Throws:
IfsException - if the operation fails

Oracle Content Management SDK

(c) 2002 Copyright Oracle Corporation. All rights reserved.