MysqlCallbackHandler#handle(MysqlCallback) is called by the classes where the callback handler is passed when they need to share
data with the caller. The kind of data to exchange depends on the implementations of MysqlCallback they choose to use.
| Modifier and Type | Method and Description |
|---|---|
| public void | handle(MysqlCallback
the cb)MysqlCallback to processExchanges information between the caller of this method and the owner of the |
| handle | back to summary |
|---|---|
| public void handle(MysqlCallback cb) Exchanges information between the caller of this method and the owner of the
private MysqlCallbackHandler callbackHandler = (cb) -> {
if (cb instanceof UsernameCallback) {
this.username = ((UsernameCallback) cb).getUsername();
}
};
| |