architectureInterface
Interface OutputStrategyInterface

All Known Implementing Classes:
OutputStrategyController

public interface OutputStrategyInterface

Architecture interface for component OutputStrategy.

Must accept messages (Requests and Replyies) from component MessageProcessor and put them out (hand them over to component InputOutputHandler, which sends them to their destination) according to an underlying strategy (e. g. batch strategy).

Must be thread-safe.

Author:
Karl-Peter Fuchs

Method Summary
 void addReply(Reply reply)
          Can be used to add a Reply, that shall be put out according to the underlying output strategy.
 void addRequest(Request request)
          Can be used to add a Request, that shall be put out according to the underlying output strategy.
 

Method Detail

addRequest

void addRequest(Request request)
Can be used to add a Request, that shall be put out according to the underlying output strategy.

Must return immediately (asynchronous behavior), internal output decision may be deferred.

Parameters:
request - Request, that shall be put out according to the underlying output strategy.

addReply

void addReply(Reply reply)
Can be used to add a Reply, that shall be put out according to the underlying output strategy.

Must return immediately (asynchronous behavior), internal output decision may be deferred.

Parameters:
reply - Reply, that shall be put out according to the underlying output strategy.