Package org.jumpmind.symmetric.transport
Interface IConcurrentConnectionManager
- All Known Implementing Classes:
ConcurrentConnectionManager
public interface IConcurrentConnectionManager
-
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic enumstatic enum -
Method Summary
Modifier and TypeMethodDescriptionvoidaddToWhitelist(String nodeId) intgetReservationCount(String poolId) String[]booleanreleaseConnection(String nodeId, String poolId) booleanreleaseConnection(String nodeId, String channelId, String poolId) voidremoveFromWhiteList(String nodeId) reserveConnection(String nodeId, String channelId, String poolId, IConcurrentConnectionManager.ReservationType reservationRequest, boolean requiresExistingReservation)
-
Method Details
-
reserveConnection
IConcurrentConnectionManager.ReservationStatus reserveConnection(String nodeId, String channelId, String poolId, IConcurrentConnectionManager.ReservationType reservationRequest, boolean requiresExistingReservation) - Parameters:
nodeId-reservationRequest- if true then hold onto reservation for the time it typically takes for a node to reconnect after the initial request. Otherwise, we know that the node has actually connected for activity.- Returns:
- true if the connection has been reserved and the node is meant to proceed with its current operation.
-
releaseConnection
-
releaseConnection
-
getReservationCount
-
getNodeConnectionStatisticsByPoolByNodeId
Map<String,Map<String, getNodeConnectionStatisticsByPoolByNodeId()ConcurrentConnectionManager.NodeConnectionStatistics>> -
getActiveReservationsByNodeByPool
Map<String,Map<String, getActiveReservationsByNodeByPool()ConcurrentConnectionManager.Reservation>> -
addToWhitelist
-
getWhiteList
String[] getWhiteList() -
removeFromWhiteList
-
getPullReservationsByNodeId
-
getPushReservationsByNodeId
-