|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.ObjectoutputStrategy.OutputStrategyController
public class OutputStrategyController
Controller class of component OutputStrategy
.
Collects messages until an output criterion is fulfilled (certain number of messages collected or timeout reached).
Messages are added by component MessageProcessor
. When the
output criterion is fulfilled, the collected messages are bypassed to the
InputOutputHandler
(component), which sends them to their
destination.
Constructor Summary | |
---|---|
OutputStrategyController()
Generates a new OutputStrategy component, which collects
messages until an output criterion is fulfilled (certain number of
messages collected or timeout reached). |
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. |
void |
initialize(InputOutputHandlerController inputOutputHandler)
Initialization method for this component. |
void |
setBatchSize(int newSize)
Number of messages the upcoming batch will contain (according to the OutputStrategy component on this mix' predecessor). |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public OutputStrategyController()
OutputStrategy
component, which collects
messages until an output criterion is fulfilled (certain number of
messages collected or timeout reached).
Messages are added by component MessageProcessor
. When the
output criterion is fulfilled, the collected messages are bypassed to
the InputOutputHandler
(component), which sends them to
their destination.
Can handle Request
s and Replies
in parallel.
Component can't be used before calling
initialize(InputOutputHandlerController)
.
initialize(InputOutputHandlerController)
Method Detail |
---|
public void initialize(InputOutputHandlerController inputOutputHandler)
inputOutputHandler
- Reference on component
InputOutputHandler
(used to
send messages after output).public void addRequest(Request request)
Request
, that shall be put out
according to the underlying output strategy.
Return immediately (asynchronous behavior), internal output decision is deferred.
addRequest
in interface OutputStrategyInterface
request
- Request
, that shall be put out according
to the underlying output strategy.public void addReply(Reply reply)
Reply
, that shall be put out
according to the underlying output strategy.
Returns immediately (asynchronous behavior), internal output decision is deferred.
addReply
in interface OutputStrategyInterface
reply
- Reply
, that shall be put out according
to the underlying output strategy.public void setBatchSize(int newSize)
OutputStrategy
component on this mix' predecessor).
Used for batch synchronization.
BatchSizeMessage
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |