io.stepfunc.rodbus.WriteCallback Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of rodbus Show documentation
Show all versions of rodbus Show documentation
Safe and fast Modbus library
// This library is provided under the terms of a non-commercial license.
//
// Please refer to the source repository for details:
//
// https://github.com/stepfunc/rodbus/blob/master/LICENSE.txt
//
// Please contact Step Function I/O if you are interested in commercial license:
//
// [email protected]
package io.stepfunc.rodbus;
import org.joou.*;
/**
* Callback methods received from asynchronous write operations
*/
public interface WriteCallback
{
/**
* Invoked when the asynchronous operation completes successfully
*
* @param result response
*/
void onComplete(Nothing result);
/**
* Invoked when the asynchronous operation fails
*
* @param error Enumeration indicating which error occurred
*/
void onFailure(RequestError error);
}