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.ThrowablegetExceptionThrown()Last exception throw for failing connectionlonggetLastConnectTime()Last connect timeBlockEventgetLatestBLockReceived()The latest BlockEvent received by peer eventing service.longgetReconnectCount()Number reconnection attempts since last disconnection.voidreconnect(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
-
-