SMILA (incubation) API documentation

org.eclipse.smila.connectivity.queue.worker.internal.recycler
Class RecyclerRule

java.lang.Object
  extended by org.eclipse.smila.connectivity.queue.worker.internal.AbstractLoggedComponent
      extended by org.eclipse.smila.connectivity.queue.worker.internal.AbstractRule<RecordRecyclerRuleType>
          extended by org.eclipse.smila.connectivity.queue.worker.internal.recycler.RecyclerRule

public class RecyclerRule
extends AbstractRule<RecordRecyclerRuleType>

The Class RecordRecyclerRule.


Field Summary
 
Fields inherited from class org.eclipse.smila.connectivity.queue.worker.internal.AbstractRule
_accessPoint, _ruleConfig
 
Fields inherited from class org.eclipse.smila.connectivity.queue.worker.internal.AbstractLoggedComponent
_id, _log
 
Constructor Summary
RecyclerRule(ServicesAccessPoint accessPoint, RecordRecyclerRuleType ruleConfig)
          Instantiates a new recycler rule.
 
Method Summary
 boolean isApplied(Message message)
          Checks if is applied.
 void process(Record record)
          Process.
 
Methods inherited from class org.eclipse.smila.connectivity.queue.worker.internal.AbstractLoggedComponent
msg
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

RecyclerRule

public RecyclerRule(ServicesAccessPoint accessPoint,
                    RecordRecyclerRuleType ruleConfig)
             throws RecordRecyclerException
Instantiates a new recycler rule.

Parameters:
accessPoint - the access point
ruleConfig - the rule config
Throws:
RecordRecyclerException - the record recycler exception
Method Detail

isApplied

public boolean isApplied(Message message)
                  throws RecordRecyclerException
Checks if is applied.

Parameters:
message - the message
Returns:
true, if is applied
Throws:
RecordRecyclerException - the record recycler exception

process

public void process(Record record)
             throws RecordRecyclerException
Process.

Parameters:
record - the record
Throws:
RecordRecyclerException - the recycler exception

SMILA (incubation) API documentation