Package org.hyperledger.fabric.sdk
Class BlockEvent
- java.lang.Object
-
- org.hyperledger.fabric.sdk.BlockInfo
-
- org.hyperledger.fabric.sdk.BlockEvent
-
public class BlockEvent extends BlockInfo
A wrapper for the Block returned in an Event- See Also:
Common.Block
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description class
BlockEvent.TransactionEvent
-
Nested classes/interfaces inherited from class org.hyperledger.fabric.sdk.BlockInfo
BlockInfo.EndorserInfo, BlockInfo.EnvelopeInfo, BlockInfo.EnvelopeType, BlockInfo.TransactionEnvelopeInfo
-
-
Method Summary
All Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description EventHub
getEventHub()
Deprecated.Use new peer eventing servicesPeer
getPeer()
The Peer that received this event.java.lang.Iterable<BlockEvent.TransactionEvent>
getTransactionEvents()
-
Methods inherited from class org.hyperledger.fabric.sdk.BlockInfo
getBlock, getBlockNumber, getChannelId, getDataHash, getEnvelopeCount, getEnvelopeInfo, getEnvelopeInfos, getFilteredBlock, getPreviousHash, getTransactionCount, getTransActionsMetaData, isFiltered
-
-
-
-
Method Detail
-
getEventHub
public EventHub getEventHub()
Deprecated. Use new peer eventing servicesGet the Event Hub that received the event.- Returns:
- an Event Hub. Maybe null if new peer eventing services is being used.
-
getPeer
public Peer getPeer()
The Peer that received this event.- Returns:
- Peer that received this event. Maybe null if source is legacy event hub.
-
getTransactionEvents
public java.lang.Iterable<BlockEvent.TransactionEvent> getTransactionEvents()
-
-