org.amino.pattern.internal
Interface Doable<I,O>

Type Parameters:
I - input type.
O - result type.

public interface Doable<I,O>

Interface for worker in pattern framework. The worker might be executed by several threads without any synchronization. It's the duty of implementer of this interface to ensure run() method is thread-safe.

Author:
Zhi Gan (ganzhi@gmail.com)

Method Summary
 O run(I input)
          Run the work item.
 

Method Detail

run

O run(I input)
Run the work item.

Parameters:
input - input action
Returns:
result.


Copyright © 2008. All Rights Reserved.