org.databene.platform.contiperf
Class ConsumerInvoker

java.lang.Object
  extended by org.databene.platform.contiperf.ConsumerInvoker
All Implemented Interfaces:
org.databene.contiperf.Invoker

public class ConsumerInvoker
extends java.lang.Object
implements org.databene.contiperf.Invoker

ContiPerf Invoker implementation which calls the Consumer.startConsuming(Object) method with the provided argument.

Created: 22.10.2009 17:23:42

Since:
0.6.0
Author:
Volker Bergmann

Constructor Summary
ConsumerInvoker(java.lang.String id, Consumer<java.lang.Object> consumer)
           
 
Method Summary
 java.lang.String getId()
           
 java.lang.Object invoke(java.lang.Object[] args)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ConsumerInvoker

public ConsumerInvoker(java.lang.String id,
                       Consumer<java.lang.Object> consumer)
Method Detail

getId

public java.lang.String getId()
Specified by:
getId in interface org.databene.contiperf.Invoker

invoke

public java.lang.Object invoke(java.lang.Object[] args)
                        throws java.lang.Exception
Specified by:
invoke in interface org.databene.contiperf.Invoker
Throws:
java.lang.Exception


Copyright © 2011. All Rights Reserved.