Class ActionHandlerSubmit
- java.lang.Object
-
- co.arago.hiro.client.model.HiroJsonMap
-
- co.arago.hiro.client.model.websocket.action.AbstractActionHandlerIdMessage
-
- co.arago.hiro.client.model.websocket.action.impl.ActionHandlerSubmit
-
- All Implemented Interfaces:
JsonMessage,ToMap,ActionHandlerIdMessage,ActionHandlerMessage,java.io.Serializable
public class ActionHandlerSubmit extends AbstractActionHandlerIdMessage
{ "type": "submitAction", "id": "id1", "handler": "handlerId", "capability": "ExecuteCommand", "parameters": {}, "timeout": 30000 }- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description java.lang.Stringcapabilityjava.lang.Stringhandlerjava.util.Map<java.lang.String,java.lang.Object>parameters-
Fields inherited from class co.arago.hiro.client.model.HiroJsonMap
fieldsMap
-
-
Constructor Summary
Constructors Constructor Description ActionHandlerSubmit(java.lang.String id)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.time.InstantexpiresAt()Instant of creation of this object plus timeout ms.java.lang.StringgetCapability()java.lang.StringgetHandler()java.util.Map<java.lang.String,java.lang.Object>getParameters()java.lang.LonggetTimeout()ActionMessageTypegetType()voidsetTimeout(java.lang.Long timeout)Sets the timeout andexpiresAt.-
Methods inherited from class co.arago.hiro.client.model.websocket.action.AbstractActionHandlerIdMessage
getId
-
Methods inherited from class co.arago.hiro.client.model.HiroJsonMap
addFields, getField, getMap, getUnmappedField, setField, setFields, toMap
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface co.arago.hiro.client.model.JsonMessage
toJsonString, toJsonStringNoNull, toPrettyJsonString, toPrettyJsonStringNoNull
-
-
-
-
Method Detail
-
getType
public ActionMessageType getType()
-
getHandler
public java.lang.String getHandler()
-
getCapability
public java.lang.String getCapability()
-
getParameters
public java.util.Map<java.lang.String,java.lang.Object> getParameters()
-
getTimeout
public java.lang.Long getTimeout()
- Returns:
- timeout in ms.
-
setTimeout
public void setTimeout(java.lang.Long timeout)
Sets the timeout andexpiresAt. 'timeout' must be greater than 0 and not null orexpiresAtwill remain unchanged.- Parameters:
timeout- Timeout in ms
-
expiresAt
public java.time.Instant expiresAt()
Instant of creation of this object plus timeout ms.- Returns:
- The instant of expiration.
-
-