java.lang.Objectcom.txtnation.android.ServerPool
public class ServerPool
Constructor Summary | |
---|---|
ServerPool()
|
Method Summary | |
---|---|
java.lang.String |
getNextUrl()
Moves onto the next server in the pool and returns it's url. |
java.lang.String |
getUrl()
Fetches the last successful url from the pool, or the first in our priority ordering if we haven't . |
void |
recordSuccess()
Mark the latest server url as successful |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public ServerPool()
Method Detail |
---|
public java.lang.String getUrl()
public java.lang.String getNextUrl()
public void recordSuccess()