SMILA (incubation) API documentation

org.eclipse.smila.connectivity.queue.worker
Interface Router

All Superinterfaces:
QueueWorker
All Known Implementing Classes:
RouterImpl

public interface Router
extends QueueWorker

The Interface Router.


Method Summary
 java.util.Map<java.lang.String,java.lang.Exception> route(Record[] records, Operation operation)
          Route records.
 
Methods inherited from interface org.eclipse.smila.connectivity.queue.worker.QueueWorker
start, stop
 

Method Detail

route

java.util.Map<java.lang.String,java.lang.Exception> route(Record[] records,
                                                          Operation operation)
                                                          throws RouterException
Route records.

Parameters:
records - the records
operation - the operation
Returns:
a Map of (key: record id, value: exception) if certain records could not be routed
Throws:
RouterException - the router exception

SMILA (incubation) API documentation