Package org.jumpmind.symmetric.transport
Interface IConcurrentConnectionManager
- All Known Implementing Classes:
ConcurrentConnectionManager
public interface IConcurrentConnectionManager
-
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic enum
static enum
-
Method Summary
Modifier and TypeMethodDescriptionvoid
addToWhitelist
(String nodeId) int
getReservationCount
(String poolId) String[]
boolean
releaseConnection
(String nodeId, String poolId) boolean
releaseConnection
(String nodeId, String channelId, String poolId) void
removeFromWhiteList
(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
-