public final class RouteDatabase extends Object
Constructor and Description |
---|
RouteDatabase() |
Modifier and Type | Method and Description |
---|---|
void |
connected(Route route)
Records success connecting to
failedRoute . |
void |
failed(Route failedRoute)
Records a failure connecting to
failedRoute . |
int |
failedRoutesCount() |
boolean |
shouldPostpone(Route route)
Returns true if
route has failed recently and should be avoided. |
public void failed(Route failedRoute)
failedRoute
.public void connected(Route route)
failedRoute
.public boolean shouldPostpone(Route route)
route
has failed recently and should be avoided.public int failedRoutesCount()
Copyright © 2016. All rights reserved.