Interface EventsHandler
-
public interface EventsHandler
Provides methods to handle Teneo Studio backend events and connection status changes. Implementations of any on...Event methods should not implement long-lasting processes in order to not block the incoming messages from the backend.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description void
onConnected()
Is called when connection has established successfully.void
onConnecting()
Is called when establishing a WebSockets connection.void
onDisconnect(javax.websocket.CloseReason reason)
Is called when client is disconnected or connection is lost.void
onEngineEvent(com.artisol.teneo.studio.api.models.events.EngineEvent event)
Is called when anEngineEvent
occurred.void
onInactivityUserEvent(com.artisol.teneo.studio.api.models.events.InactivityUserEvent event)
Is called when anInactivityUserEvent
occurred.void
onLocksExpiredEvent(com.artisol.teneo.studio.api.models.events.LocksExpiredEvent event)
Is called when anLocksExpiredEvent
occurred.void
onLogDataSourceEvent(com.artisol.teneo.studio.api.models.events.LogDataSourceEvent event)
Is called when aLogDataSourceEvent
occurred.void
onSentToBinEvent(com.artisol.teneo.studio.api.models.events.SentToBinEvent event)
Is called when anSentToBinEvent
occurred.void
onSessionReactivatedEvent(com.artisol.teneo.studio.api.models.events.SessionReactivatedEvent event)
Is called when anSessionReactivatedEvent
occurred.void
onSolutionEvent(com.artisol.teneo.studio.api.models.events.SolutionEvent event)
Is called when anSolutionEvent
occurred.void
onSolutionLogEvent(com.artisol.teneo.studio.api.models.events.SolutionLogEvent event)
Is called when anSolutionLogEvent
occurred.void
onTaskEvent(com.artisol.teneo.studio.api.models.events.TaskEvent event)
Is called when anTaskEvent
occurred.
-
-
-
Method Detail
-
onConnecting
void onConnecting()
Is called when establishing a WebSockets connection.
-
onConnected
void onConnected()
Is called when connection has established successfully.
-
onDisconnect
void onDisconnect(javax.websocket.CloseReason reason)
Is called when client is disconnected or connection is lost.- Parameters:
reason
- Reason for disconnect.
-
onEngineEvent
void onEngineEvent(com.artisol.teneo.studio.api.models.events.EngineEvent event)
Is called when anEngineEvent
occurred.- Parameters:
event
- the receivedEngineEvent
-
onInactivityUserEvent
void onInactivityUserEvent(com.artisol.teneo.studio.api.models.events.InactivityUserEvent event)
Is called when anInactivityUserEvent
occurred.- Parameters:
event
- the receivedInactivityUserEvent
-
onLocksExpiredEvent
void onLocksExpiredEvent(com.artisol.teneo.studio.api.models.events.LocksExpiredEvent event)
Is called when anLocksExpiredEvent
occurred.- Parameters:
event
- the receivedLocksExpiredEvent
-
onSentToBinEvent
void onSentToBinEvent(com.artisol.teneo.studio.api.models.events.SentToBinEvent event)
Is called when anSentToBinEvent
occurred.- Parameters:
event
- the receivedSentToBinEvent
-
onSessionReactivatedEvent
void onSessionReactivatedEvent(com.artisol.teneo.studio.api.models.events.SessionReactivatedEvent event)
Is called when anSessionReactivatedEvent
occurred.- Parameters:
event
- the receivedSessionReactivatedEvent
-
onSolutionEvent
void onSolutionEvent(com.artisol.teneo.studio.api.models.events.SolutionEvent event)
Is called when anSolutionEvent
occurred.- Parameters:
event
- the receivedSolutionEvent
-
onSolutionLogEvent
void onSolutionLogEvent(com.artisol.teneo.studio.api.models.events.SolutionLogEvent event)
Is called when anSolutionLogEvent
occurred.- Parameters:
event
- the receivedSolutionLogEvent
-
onTaskEvent
void onTaskEvent(com.artisol.teneo.studio.api.models.events.TaskEvent event)
Is called when anTaskEvent
occurred.- Parameters:
event
- the receivedTaskEvent
-
onLogDataSourceEvent
void onLogDataSourceEvent(com.artisol.teneo.studio.api.models.events.LogDataSourceEvent event)
Is called when aLogDataSourceEvent
occurred.- Parameters:
event
- the receivedLogDataSourceEvent
-
-