public class ProtocolCommand extends Object
This class is used by custom protocol actions. For detailed information about custom protocol actions, please refer to the Protocol.dispatch and SmartInspect.dispatch methods.
The public members of this class are threadsafe.
| Constructor and Description |
|---|
ProtocolCommand(int action,
Object state)
Creates and initializes a new ProtocolCommand instance.
|
| Modifier and Type | Method and Description |
|---|---|
int |
getAction()
Returns the custom protocol action to execute.
|
Object |
getState()
Returns the optional protocol command object which provides
additional information about the custom protocol action.
|
public ProtocolCommand(int action,
Object state)
action - The custom protocol action to executestate - Optional object which provides additional information about the custom protocol actionpublic int getAction()
public Object getState()
Copyright © 2023. All rights reserved.