|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface Callback
This interface provides the call back function used in
Mdf.consume()
.
Mdf
Nested Class Summary | |
---|---|
static class |
Callback.StatusCode
Defines the various connection states |
Method Summary | |
---|---|
void |
consumeData(Mdf mdf)
This function is automatically called by the consume()
function of Mdf class if the setConsumeDataCallback() method have been used to register a consumeData callback. |
void |
statusChange(Callback.StatusCode status,
java.lang.String host,
java.lang.String ip)
This function is automatically called by the consume()
function of Mdf class when the current connection status changes and if the
setStatusChangeCallback() method have been used to register a statusChange callback. |
Method Detail |
---|
void consumeData(Mdf mdf)
consume()
function of Mdf
class if the setConsumeDataCallback()
method have been used to register a consumeData callback.
mdf
- Mdf
object that receives data from the mdf servervoid statusChange(Callback.StatusCode status, java.lang.String host, java.lang.String ip)
consume()
function of Mdf
class when the current connection status changes and if the
setStatusChangeCallback()
method have been used to register a statusChange callback.
status
- the new connection statushost
- the server host name we are connecting / trying to connect toip
- the ip address of the host if available (can be null if not translated yet)
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |