public interface Observer
Modifier and Type | Method and Description |
---|---|
void |
error(Throwable throwable)
Connection exception
|
void |
fail()
Fail in connect
|
void |
other(int code)
Other error
|
void |
success()
Successful connection
|
void success()
void fail()
void error(Throwable throwable)
throwable
- Connection exception.void other(int code)
code
- Error code.