public interface UIThreadListener
enterUIThread
and
leaveUIThread
. This listener will always be called in the UIThread.
In a RAP application, the UI thread is entered when a client request hits the server, e.g. after some user interaction. When all pending events are processed, the UI thread is left and the response goes back to the client. This listener can be used to track activity or to set up and tear down a context such as a database connection.
Modifier and Type | Method and Description |
---|---|
void |
enterUIThread(UISessionEvent event)
Called when a UISession has entered the UI thread to process events.
|
void |
leaveUIThread(UISessionEvent event)
Called when a UISession has processed all pending events and is about to leave the UI thread.
|
void enterUIThread(UISessionEvent event)
event
- an event that provides access to the UI sessionvoid leaveUIThread(UISessionEvent event)
event
- an event that provides access to the UI session
Copyright (c) EclipseSource and others 2002, 2017.
All rights reserved. This program and the accompanying materials
are made available under the terms of the
Eclipse Public License v1.0