Package org.hyperledger.fabric.sdk
Interface ChaincodeEventListener
-
public interface ChaincodeEventListener
ChaincodeEventListener implemented by classes needing to receive chaincode events.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description void
received(java.lang.String handle, BlockEvent blockEvent, ChaincodeEvent chaincodeEvent)
Receiving a chaincode event.
-
-
-
Method Detail
-
received
void received(java.lang.String handle, BlockEvent blockEvent, ChaincodeEvent chaincodeEvent)
Receiving a chaincode event. ChaincodeEventListener should not be long lived as they can take up thread resources.- Parameters:
handle
- The handle of the chaincode event listener that produced this event.blockEvent
- The block event information that contained the chaincode event. SeeBlockEvent
chaincodeEvent
- The chaincode event. seeChaincodeEvent
-
-