ConnectionState
public abstract class ConnectionState extends Object implements Serializable
Constructors
Name | Description |
---|---|
public ConnectionState()
|
Methods
isTerminal
public boolean isTerminal()
ReturnValue
Name | Description |
---|---|
boolean
|
isType
public boolean isType(Type type)
Parameters
Name | Description |
---|---|
Type type
|
ReturnValue
Name | Description |
---|---|
boolean
|
getType
public abstract Type getType()
ReturnValue
Name | Description |
---|---|
Type
|
preparingToConnect
public abstract void preparingToConnect()
This is initial state, and also the state while waiting for reconnection.
ReturnValue
Name | Description |
---|---|
void
|
connecting
public abstract void connecting()
Connecting with approximate progress.
ReturnValue
Name | Description |
---|---|
void
|
initializing
public abstract void initializing()
Initializing with approximate progress.
The progress continues on from the progress reported by the connecting
state.
ReturnValue
Name | Description |
---|---|
void
|
configuring
public abstract void configuring()
Configuring with approximate progress.
The progress continues on from the progress reported by the initializing
state.
ReturnValue
Name | Description |
---|---|
void
|
firmwareUpdateInitiated
public abstract void firmwareUpdateInitiated()
Initiating Firmware update process
ReturnValue
Name | Description |
---|---|
void
|
firmwareTransferring
public abstract int firmwareTransferring()
Initiates firmware upload process
ReturnValue
Name | Description |
---|---|
int
|
firmwareExecuting
public abstract void firmwareExecuting()
Initiates firmware execution process. This will disconnect the tag, once commands to execute the firmware sent to the Tag.
ReturnValue
Name | Description |
---|---|
void
|
firmwareTransferComplete
public abstract void firmwareTransferComplete()
Indicates Firmware update process is completed.
ReturnValue
Name | Description |
---|---|
void
|
connected
public abstract ConnectedJacquardTag connected()
returns the connected tag ready to use. Note this is not a terminal state - the stream may ho back to disconnected, and then subsequently reconnect again.
ReturnValue
Name | Description |
---|---|
ConnectedJacquardTag
|
a connected tag ready to use. |
disconnected
public abstract JacquardError disconnected()
This terminal state will only be reached if reconnecting or retrying is not possible.
ReturnValue
Name | Description |
---|---|
JacquardError
|
ofPreparingToConnect
public static ConnectionState ofPreparingToConnect()
ReturnValue
Name | Description |
---|---|
ConnectionState
|
ofConnecting
public static ConnectionState ofConnecting()
ReturnValue
Name | Description |
---|---|
ConnectionState
|
ofInitializing
public static ConnectionState ofInitializing()
ReturnValue
Name | Description |
---|---|
ConnectionState
|
ofConfiguring
public static ConnectionState ofConfiguring()
ReturnValue
Name | Description |
---|---|
ConnectionState
|
ofConnected
public static ConnectionState ofConnected(ConnectedJacquardTag tag)
Parameters
Name | Description |
---|---|
ConnectedJacquardTag tag
|
ReturnValue
Name | Description |
---|---|
ConnectionState
|
ofDisconnected
public static ConnectionState ofDisconnected(JacquardError error)
Parameters
Name | Description |
---|---|
JacquardError error
|
ReturnValue
Name | Description |
---|---|
ConnectionState
|
ofFirmwareUpdateInitiated
public static ConnectionState ofFirmwareUpdateInitiated()
ReturnValue
Name | Description |
---|---|
ConnectionState
|
ofFirmwareTransferring
public static ConnectionState ofFirmwareTransferring(int progress)
Parameters
Name | Description |
---|---|
int progress
|
ReturnValue
Name | Description |
---|---|
ConnectionState
|
ofFirmwareExecuting
public static ConnectionState ofFirmwareExecuting()
ReturnValue
Name | Description |
---|---|
ConnectionState
|
ofFirmwareTransferComplete
public static ConnectionState ofFirmwareTransferComplete()
ReturnValue
Name | Description |
---|---|
ConnectionState
|
The different states on the connection process.