Package org.openremote.model.asset
Class ReadAssetEvent
java.lang.Object
org.openremote.model.event.Event
org.openremote.model.event.shared.SharedEvent
org.openremote.model.asset.ReadAssetEvent
- All Implemented Interfaces:
HasAssetQuery
,RespondableEvent
A client sends this event to the server to read the specified asset, optionally restricting which attributes
expecting the server to answer "soon" with an
AssetEvent
. If the server decides that the client doesn't have
the right permissions, or if anything else is not in order (e.g. the asset doesn't exist), the server might not react
at all.-
Field Summary
FieldsFields inherited from class org.openremote.model.event.shared.SharedEvent
MESSAGE_PREFIX
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid
setAssetId
(String assetId) void
setResponseConsumer
(Consumer<Event> responseConsumer) toString()
Methods inherited from class org.openremote.model.event.Event
getEventType, getEventType, getEventType, getMessageID, getTimestamp, setMessageID, setTimestamp
-
Field Details
-
assetId
-
assetQuery
-
responseConsumer
-
-
Constructor Details
-
ReadAssetEvent
-
-
Method Details
-
getAssetId
-
setAssetId
-
getAssetQuery
- Specified by:
getAssetQuery
in interfaceHasAssetQuery
-
getResponseConsumer
- Specified by:
getResponseConsumer
in interfaceRespondableEvent
-
setResponseConsumer
- Specified by:
setResponseConsumer
in interfaceRespondableEvent
-
toString
-