Package org.hyperledger.fabric.sdk
Interface Peer.PeerEventingServiceDisconnectEvent
-
- Enclosing class:
- Peer
public static interface Peer.PeerEventingServiceDisconnectEvent
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description java.lang.Throwable
getExceptionThrown()
Last exception throw for failing connectionlong
getLastConnectTime()
Last connect timeBlockEvent
getLatestBLockReceived()
The latest BlockEvent received by peer eventing service.long
getReconnectCount()
Number reconnection attempts since last disconnection.void
reconnect(java.lang.Long startEvent)
-
-
-
Method Detail
-
getLatestBLockReceived
BlockEvent getLatestBLockReceived()
The latest BlockEvent received by peer eventing service.- Returns:
- The latest BlockEvent.
-
getLastConnectTime
long getLastConnectTime()
Last connect time- Returns:
- Last connect time as reported by System.currentTimeMillis()
-
getReconnectCount
long getReconnectCount()
Number reconnection attempts since last disconnection.- Returns:
- reconnect attempts.
-
getExceptionThrown
java.lang.Throwable getExceptionThrown()
Last exception throw for failing connection- Returns:
-
reconnect
void reconnect(java.lang.Long startEvent) throws TransactionException
- Throws:
TransactionException
-
-