io.stepfunc.rodbus.ClientState 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.*;
/**
* State of the client connection.
*
* Used by the {@link ClientStateListener}.
*/
public enum ClientState
{
/**
* Client is disabled and idle until enabled
*/
DISABLED(0),
/**
* Client is trying to establish a connection to the remote device
*/
CONNECTING(1),
/**
* Client is connected to the remote device
*/
CONNECTED(2),
/**
* Failed to establish a connection, waiting before retrying
*/
WAIT_AFTER_FAILED_CONNECT(3),
/**
* Client was disconnected, waiting before retrying
*/
WAIT_AFTER_DISCONNECT(4),
/**
* Client is shutting down
*/
SHUTDOWN(5),;
final private int value;
private ClientState(int value)
{
this.value = value;
}
}