Package io.openems.backend.b2bwebsocket
Class WsData
java.lang.Object
io.openems.common.websocket.WsData
io.openems.backend.b2bwebsocket.WsData
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid
dispose()
This method is called on close of the parent websocket.Gets the SubscribedChannelsWorker to take care of subscribe to CurrentData.getUser()
getUserWithTimeout
(long timeout, TimeUnit unit) Gets the logged in User with a timeout.void
toString()
Provides a specific toString method.Methods inherited from class io.openems.common.websocket.WsData
getWebsocket, handleJsonrpcResponse, send, send, setWebsocket
-
Constructor Details
-
WsData
-
-
Method Details
-
dispose
public void dispose()Description copied from class:WsData
This method is called on close of the parent websocket. Use it to release blocked resources. -
setUser
-
getUser
-
getUserWithTimeout
public User getUserWithTimeout(long timeout, TimeUnit unit) throws OpenemsError.OpenemsNamedException Gets the logged in User with a timeout.- Parameters:
timeout
- the timeout lengthunit
- theTimeUnit
of the timeout- Returns:
- the
User
- Throws:
OpenemsError.OpenemsNamedException
- on error
-
getUserOpt
-
getSubscribedChannelsWorker
Gets the SubscribedChannelsWorker to take care of subscribe to CurrentData.- Returns:
- the SubscribedChannelsWorker
-
toString
Description copied from class:WsData
Provides a specific toString method.
-