Package com.flir.thermalsdk.live.remote
Class Command2Args<Ret,Arg1,Arg2>
java.lang.Object
com.flir.thermalsdk.live.remote.Command2Args<Ret,Arg1,Arg2>
Represents a command with dwo parameters on the remote camera.
Executing a command will send requests to the camera.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionabstract voidexecute(OnReceived<Ret> onReceived, OnRemoteError onError, Arg1 arg1, Arg2 arg2) Executes the command asynchronously.abstract RetexecuteSync(Arg1 arg1, Arg2 arg2) Executes the command synchronously (blocking).abstract booleanCheck if this command is available.
-
Constructor Details
-
Command2Args
public Command2Args()
-
-
Method Details
-
isAvailable
Check if this command is available. Some commands are only supported by some types of cameras. Use this method to check if this command is supported before reading/writing.Note: this method may throw a
RuntimeExceptionif communication with the remote camera fails or some other problem occurs. -
execute
public abstract void execute(OnReceived<Ret> onReceived, OnRemoteError onError, Arg1 arg1, Arg2 arg2) Executes the command asynchronously.- Parameters:
onReceived- Callback that is invoked if the command was successfully executed. It may contain a data returned from executed command.onError- Callback that is invoked if any error occurred during update.arg1- Argument/parameter for the commandarg2- Argument/parameter for the command
-
executeSync
Executes the command synchronously (blocking). It may contain a data returned from executed command.Note: this method may throw a
RuntimeExceptionif communication with the remote camera fails or some other problem occurs.- Parameters:
arg1- Argument/parameter for the commandarg2- Argument/parameter for the command- Returns:
- It may contain a data returned from executed command, or a
Voidmeaning the command is not returning any value.
-