public abstract class AbstractPushController extends Thread implements PushController
PushController.PushControllerThread.State, Thread.UncaughtExceptionHandler| Modifier and Type | Field and Description |
|---|---|
protected static int |
DEFAULT_DELAY |
static String |
PARAM_UPDATE_INTERVAL |
protected Map<String,Object> |
params |
MAX_PRIORITY, MIN_PRIORITY, NORM_PRIORITY| Constructor and Description |
|---|
AbstractPushController() |
AbstractPushController(PushComponent pushComp) |
AbstractPushController(PushComponent pushComp,
int updateInterval) |
| Modifier and Type | Method and Description |
|---|---|
protected void |
addEvent(CockpitEvent cockpitEvent) |
protected abstract void |
after() |
protected abstract void |
before() |
PushComponent |
getComponent()
Returns this push controller's
PushComponent. |
protected Desktop |
getDesktop() |
Map<String,Object> |
getParameters() |
protected UISession |
getSession() |
int |
getUpdateInterval()
Returns the update interval in milliseconds for this push controller.
|
protected WebApplicationContext |
getWebApplicationContext() |
protected boolean |
isDone() |
protected void |
loadParameters() |
void |
run() |
void |
setComponent(PushComponent component)
Sets the
PushComponent to be used by this push controller to component. |
void |
setDone()
Tells this push controller to stop processing server push events.
|
void |
setParameters(Map<String,Object> params) |
void |
setUpdateInterval(int milliseconds)
Sets the update interval in milliseconds for this push controller.
|
void |
startController()
Starts this push controller.
|
String |
toString() |
activeCount, checkAccess, clone, countStackFrames, currentThread, destroy, dumpStack, enumerate, getAllStackTraces, getContextClassLoader, getDefaultUncaughtExceptionHandler, getId, getName, getPriority, getStackTrace, getState, getThreadGroup, getUncaughtExceptionHandler, holdsLock, interrupt, interrupted, isAlive, isDaemon, isInterrupted, join, join, join, resume, setContextClassLoader, setDaemon, setDefaultUncaughtExceptionHandler, setName, setPriority, setUncaughtExceptionHandler, sleep, sleep, start, stop, stop, suspend, yieldequals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitisUpdateNeeded, updateprotected static final int DEFAULT_DELAY
public static final String PARAM_UPDATE_INTERVAL
public AbstractPushController()
public AbstractPushController(PushComponent pushComp)
public AbstractPushController(PushComponent pushComp, int updateInterval)
public void setUpdateInterval(int milliseconds)
PushControllersetUpdateInterval in interface PushControllermilliseconds - the delay between updates (or update requests) in millisecondspublic int getUpdateInterval()
PushControllergetUpdateInterval in interface PushControllerpublic void setComponent(PushComponent component)
PushControllerPushComponent to be used by this push controller to component.setComponent in interface PushControllercomponent - the push component used by this push controllerPushComponentpublic PushComponent getComponent()
PushControllerPushComponent.getComponent in interface PushControllerprotected Desktop getDesktop()
public void setDone()
PushControllerPushController.getUpdateInterval()).setDone in interface PushControllerPushController.startController()protected boolean isDone()
protected void addEvent(CockpitEvent cockpitEvent)
public void startController()
PushControllerstartController in interface PushControllerPushController.setDone()protected UISession getSession()
protected WebApplicationContext getWebApplicationContext()
throws IllegalStateException
IllegalStateExceptionprotected abstract void before()
protected abstract void after()
public void setParameters(Map<String,Object> params)
setParameters in interface PushControllerpublic Map<String,Object> getParameters()
getParameters in interface PushControllerprotected void loadParameters()
Copyright © 2017 SAP SE. All Rights Reserved.