Class ReconnectForwarder
java.lang.Object
org.opendaylight.controller.cluster.access.client.ReconnectForwarder
Forwarder class responsible for routing requests from the previous connection incarnation back to the originator,
which can then convert them as appropriate.
-
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedReconnectForwarder(ConnectedClientConnection<?> successor) Constructor for forwarding towards a connected connection.protectedReconnectForwarder(ReconnectingClientConnection<?> successor) Constructor for forwarding towards a reconnecting connection. -
Method Summary
Modifier and TypeMethodDescriptionprotected abstract voidforwardEntry(ConnectionEntry entry, long now) protected abstract voidreplayEntry(ConnectionEntry entry, long now) protected final voidreplayToSuccessor(ConnectionEntry entry) Forward aConnectionEntryto the successor viaAbstractClientConnection.enqueueRequest(Request, Consumer, long).protected final voidsendToSuccessor(ConnectionEntry entry) Forward aConnectionEntryto the successor viaAbstractClientConnection.sendRequest(Request, Consumer).
-
Constructor Details
-
ReconnectForwarder
Constructor for forwarding towards a connected connection.- Parameters:
successor- the successorConnectedClientConnection
-
ReconnectForwarder
Constructor for forwarding towards a reconnecting connection.- Parameters:
successor- the successorReconnectingClientConnection
-
-
Method Details
-
sendToSuccessor
Forward aConnectionEntryto the successor viaAbstractClientConnection.sendRequest(Request, Consumer).- Parameters:
entry- theConnectionEntry
-
replayToSuccessor
Forward aConnectionEntryto the successor viaAbstractClientConnection.enqueueRequest(Request, Consumer, long).- Parameters:
entry- theConnectionEntry
-
forwardEntry
-
replayEntry
-