java.lang.Object
org.yamcs.sle.EndpointHandler
Handles a list of SLE endpoints which are tried in a round robin fashion
-
Nested Class Summary
Nested Classes -
Constructor Summary
Constructors -
Method Summary
-
Constructor Details
-
EndpointHandler
-
-
Method Details
-
next
- Returns:
- the next point in the list to connect to
-
nextConnectionAttemptMillis
public long nextConnectionAttemptMillis()This is called after a SLE connection failed - returns the amount of time to wait before attempting to connect to the next endpointIf all the endpoints have been exhausted, return
reconnectionIntervalMillis, otherwise returnroundRobinIntervalMillis- Returns:
-
reset
public void reset()sets the index to -1 such that he next endpoint returned is the first one in the list
-