org.dsa.iot.dslink.connection.NetworkHandlers Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of dslink Show documentation
Show all versions of dslink Show documentation
SDK for the IoT DSA protocol
package org.dsa.iot.dslink.connection;
import org.dsa.iot.dslink.util.handler.Handler;
import org.dsa.iot.dslink.util.json.JsonObject;
/**
* Handles network clients on vertx events.
*
* @author Samuel Grenier
*/
class NetworkHandlers {
private Handler onConnected;
private Handler onDisconnected;
private Handler onData;
public Handler getOnConnected() {
return onConnected;
}
public void setOnConnected(Handler onConnected) {
this.onConnected = onConnected;
}
public Handler getOnDisconnected() {
return onDisconnected;
}
public void setOnDisconnected(Handler onDisconnected) {
this.onDisconnected = onDisconnected;
}
public Handler getOnData() {
return onData;
}
public void setOnData(Handler onData) {
this.onData = onData;
}
}