Package com.vaadin.quarkus.graal
Class DelayedInitBroadcaster
java.lang.Object
org.atmosphere.cpr.DefaultBroadcaster
com.vaadin.quarkus.graal.DelayedInitBroadcaster
- All Implemented Interfaces:
org.atmosphere.cpr.Broadcaster
public class DelayedInitBroadcaster
extends org.atmosphere.cpr.DefaultBroadcaster
A broadcaster implementation that postpone schedulers initialization.
Usually initialization is performed during Atmosphere init() call, but this prevents a native build to complete because starting threads at build time is not supported. Postponed initialization is activated by a call to
startExecutors(AtmosphereFramework).-
Nested Class Summary
Nested classes/interfaces inherited from class org.atmosphere.cpr.DefaultBroadcaster
org.atmosphere.cpr.DefaultBroadcaster.AsyncWriteToken, org.atmosphere.cpr.DefaultBroadcaster.WriteQueueNested classes/interfaces inherited from interface org.atmosphere.cpr.Broadcaster
org.atmosphere.cpr.Broadcaster.POLICY, org.atmosphere.cpr.Broadcaster.SCOPE -
Field Summary
Fields inherited from class org.atmosphere.cpr.DefaultBroadcaster
asyncWriteFuture, bc, broadcasterListeners, broadcastOnResume, CACHED, candidateForPoolable, config, delayedBroadcast, destroyed, dispatchThread, initialized, lifeCycleListeners, messages, name, notifierFuture, POLLING_DEFAULT, resources, scope, sharedListeners, started, uniqueWriteQueue, uri, usingTokenIdForAttribute, waitTime, writeQueues, writeTimeoutInSecondFields inherited from interface org.atmosphere.cpr.Broadcaster
ROOT_MASTER -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected org.atmosphere.cpr.BroadcasterConfigcreateBroadcasterConfig(org.atmosphere.cpr.AtmosphereConfig config) protected voidprotected voidstart()Methods inherited from class org.atmosphere.cpr.DefaultBroadcaster
addAtmosphereResource, addBroadcasterLifeCyclePolicyListener, addBroadcasterListener, awaitAndBroadcast, broadcast, broadcast, broadcast, broadcasterListeners, broadcastOnResume, broadcastOnResume, cacheAndSuspend, cacheLostMessage, cacheLostMessage, cacheLostMessage, cacheMessageOnIOException, checkCachedAndPush, currentLifecycleTask, currentLifecycleTask, delayBroadcast, delayBroadcast, deliverPush, destroy, dispatchMessages, endBroadcast, entryDone, executeAsyncWrite, executeBlockingWrite, filter, futureDone, getAsyncWriteHandler, getAtmosphereResources, getBroadcasterConfig, getBroadcasterLifeCyclePolicy, getBroadcastHandler, getID, getScope, initialize, initialize, invokeOnStateChange, isDestroyed, killReactiveThreads, lifecycleHandler, lifecycleHandler, lifeCycleListeners, lifeCyclePolicy, messages, notifyAndAdd, notifyBroadcastListener, notifyOnAddAtmosphereResourceListener, notifyOnMessage, notifyOnRemoveAtmosphereResourceListener, onException, onException, outOfOrderBroadcastSupported, perRequestFilter, policy, prepareInvokeOnStateChange, push, queueWriteIO, reactiveThreadsCount, recentActivity, releaseExternalResources, removeAtmosphereResource, removeAtmosphereResource, removeBroadcasterLifeCyclePolicyListener, removeBroadcasterListener, rename, resumeAll, retrieveTrackedBroadcast, scheduleFixedBroadcast, scheduleFixedBroadcast, setBroadcasterConfig, setBroadcasterLifeCyclePolicy, setID, setScope, setSuspendPolicy, toString, writeQueues
-
Constructor Details
-
DelayedInitBroadcaster
public DelayedInitBroadcaster()
-
-
Method Details
-
createBroadcasterConfig
protected org.atmosphere.cpr.BroadcasterConfig createBroadcasterConfig(org.atmosphere.cpr.AtmosphereConfig config) - Overrides:
createBroadcasterConfigin classorg.atmosphere.cpr.DefaultBroadcaster
-
spawnReactor
protected void spawnReactor()- Overrides:
spawnReactorin classorg.atmosphere.cpr.DefaultBroadcaster
-
start
protected void start()- Overrides:
startin classorg.atmosphere.cpr.DefaultBroadcaster
-