Class AbstractSerializingConnectorTest.CountingProductReceptionCallback
java.lang.Object
test.de.iip_ecosphere.platform.connectors.AbstractSerializingConnectorTest.CountingProductReceptionCallback
- All Implemented Interfaces:
de.iip_ecosphere.platform.transport.connectors.ReceptionCallback<test.de.iip_ecosphere.platform.transport.Product>
- Enclosing class:
AbstractSerializingConnectorTest
private static class AbstractSerializingConnectorTest.CountingProductReceptionCallback
extends Object
implements de.iip_ecosphere.platform.transport.connectors.ReceptionCallback<test.de.iip_ecosphere.platform.transport.Product>
Just counts product receptions.
- Author:
- Holger Eichelberger, SSE
-
Field Details
-
counter
private int counter
-
-
Constructor Details
-
CountingProductReceptionCallback
private CountingProductReceptionCallback()
-
-
Method Details
-
received
public void received(test.de.iip_ecosphere.platform.transport.Product data) - Specified by:
receivedin interfacede.iip_ecosphere.platform.transport.connectors.ReceptionCallback<test.de.iip_ecosphere.platform.transport.Product>
-
getType
- Specified by:
getTypein interfacede.iip_ecosphere.platform.transport.connectors.ReceptionCallback<test.de.iip_ecosphere.platform.transport.Product>
-
getCounter
public int getCounter()Returns the counter value.- Returns:
- the number of received products
-