Interface EventsHandler
-
public interface EventsHandlerProvides 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 voidonConnected()Is called when connection has established successfully.voidonConnecting()Is called when establishing a WebSockets connection.voidonDisconnect(javax.websocket.CloseReason reason)Is called when client is disconnected or connection is lost.voidonEngineEvent(com.artisol.teneo.studio.api.models.events.EngineEvent event)Is called when anEngineEventoccurred.voidonInactivityUserEvent(com.artisol.teneo.studio.api.models.events.InactivityUserEvent event)Is called when anInactivityUserEventoccurred.voidonLocksExpiredEvent(com.artisol.teneo.studio.api.models.events.LocksExpiredEvent event)Is called when anLocksExpiredEventoccurred.voidonLogDataSourceEvent(com.artisol.teneo.studio.api.models.events.LogDataSourceEvent event)Is called when aLogDataSourceEventoccurred.voidonSentToBinEvent(com.artisol.teneo.studio.api.models.events.SentToBinEvent event)Is called when anSentToBinEventoccurred.voidonSessionReactivatedEvent(com.artisol.teneo.studio.api.models.events.SessionReactivatedEvent event)Is called when anSessionReactivatedEventoccurred.voidonSolutionEvent(com.artisol.teneo.studio.api.models.events.SolutionEvent event)Is called when anSolutionEventoccurred.voidonSolutionLogEvent(com.artisol.teneo.studio.api.models.events.SolutionLogEvent event)Is called when anSolutionLogEventoccurred.voidonTaskEvent(com.artisol.teneo.studio.api.models.events.TaskEvent event)Is called when anTaskEventoccurred.
-
-
-
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 anEngineEventoccurred.- Parameters:
event- the receivedEngineEvent
-
onInactivityUserEvent
void onInactivityUserEvent(com.artisol.teneo.studio.api.models.events.InactivityUserEvent event)
Is called when anInactivityUserEventoccurred.- Parameters:
event- the receivedInactivityUserEvent
-
onLocksExpiredEvent
void onLocksExpiredEvent(com.artisol.teneo.studio.api.models.events.LocksExpiredEvent event)
Is called when anLocksExpiredEventoccurred.- Parameters:
event- the receivedLocksExpiredEvent
-
onSentToBinEvent
void onSentToBinEvent(com.artisol.teneo.studio.api.models.events.SentToBinEvent event)
Is called when anSentToBinEventoccurred.- Parameters:
event- the receivedSentToBinEvent
-
onSessionReactivatedEvent
void onSessionReactivatedEvent(com.artisol.teneo.studio.api.models.events.SessionReactivatedEvent event)
Is called when anSessionReactivatedEventoccurred.- Parameters:
event- the receivedSessionReactivatedEvent
-
onSolutionEvent
void onSolutionEvent(com.artisol.teneo.studio.api.models.events.SolutionEvent event)
Is called when anSolutionEventoccurred.- Parameters:
event- the receivedSolutionEvent
-
onSolutionLogEvent
void onSolutionLogEvent(com.artisol.teneo.studio.api.models.events.SolutionLogEvent event)
Is called when anSolutionLogEventoccurred.- Parameters:
event- the receivedSolutionLogEvent
-
onTaskEvent
void onTaskEvent(com.artisol.teneo.studio.api.models.events.TaskEvent event)
Is called when anTaskEventoccurred.- Parameters:
event- the receivedTaskEvent
-
onLogDataSourceEvent
void onLogDataSourceEvent(com.artisol.teneo.studio.api.models.events.LogDataSourceEvent event)
Is called when aLogDataSourceEventoccurred.- Parameters:
event- the receivedLogDataSourceEvent
-
-