org.jacp.api.component
Interface IMapReudce<L,A,M>

Type Parameters:
L - defines the action listener type
A - defines the basic action type
M - defines the basic message type
All Superinterfaces:
IComponent<L,A,M>

public interface IMapReudce<L,A,M>
extends IComponent<L,A,M>

Defines the interface for a map/reduce instance.

Author:
Andy Moncsek

Method Summary
<C> C
map(IAction<A,M> action)
          The handle method.
<C> C
reduce(IAction<A,M> action)
          The reduce method.
 
Methods inherited from interface org.jacp.api.component.IComponent
getActionListener, getId, getName, isActive, isStarted, setActive, setId, setMessageQueue, setName, setStarted
 

Method Detail

reduce

<C> C reduce(IAction<A,M> action)
The reduce method.

Returns:
the value of reduce state

map

<C> C map(IAction<A,M> action)
The handle method.

Type Parameters:
C -
Parameters:
action -
Returns:
the value of map state (a map)