public abstract class OortContainer<T> extends OortObject<T>
OortObject.Data<T>, OortObject.Factory<T>, OortObject.Info<T>, OortObject.Listener<T>, OortObject.Merger<T,R>, OortObject.Result<R>
org.eclipse.jetty.util.component.AbstractLifeCycle.AbstractLifeCycleListener
ConfigurableServerChannel.Initializer.Persistent
Oort.CometListener.Event
OORT_OBJECTS_CHANNEL
Constructor and Description |
---|
OortContainer(Oort oort,
String name,
OortObject.Factory<T> factory) |
Modifier and Type | Method and Description |
---|---|
void |
cometLeft(Oort.CometListener.Event event)
Callback method invoked when a comet leaves the cloud
|
protected void |
doStop() |
protected abstract boolean |
isItemUpdate(Map<String,Object> data) |
protected abstract void |
onItem(OortObject.Info<T> info,
Map<String,Object> data) |
protected void |
onObject(Map<String,Object> data) |
addListener, cometJoined, configureChannel, deserialize, doStart, dump, getChannelName, getFactory, getInfo, getInfoByObject, getInfos, getLocalSession, getName, getOort, iterator, merge, newInfo, notifyRemoved, notifyUpdated, pullInfo, pushInfo, removeListener, removeListeners, serialize, setAndShare, toString
addLifeCycleListener, getState, getState, getStopTimeout, isFailed, isRunning, isStarted, isStarting, isStopped, isStopping, removeLifeCycleListener, setStopTimeout, start, stop
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
forEach, spliterator
public OortContainer(Oort oort, String name, OortObject.Factory<T> factory)
protected void doStop()
doStop
in class OortObject<T>
public void cometLeft(Oort.CometListener.Event event)
Oort.CometListener
cometLeft
in interface Oort.CometListener
cometLeft
in class OortObject<T>
event
- the comet eventprotected void onObject(Map<String,Object> data)
onObject
in class OortObject<T>
protected abstract void onItem(OortObject.Info<T> info, Map<String,Object> data)
Copyright © 2008–2024 The CometD Project. All rights reserved.