Package com.streambase.sb.operator
Interface Operator.SharedObjectManager
- Enclosing class:
- Operator
public static interface Operator.SharedObjectManager
The manager for SharedObjects within a container. Used in the
Operator.RuntimeEnvironment
interface
to manage SharedObjects. The lifecycle of a registered SharedObject is maintained by the parent Container.
When the parent Container is removed, suspended, resumed the appropriate methods on the SharedObject will also be called.
SharedObjects are maintained by the key given during registerSharedObject(java.lang.Object, com.streambase.sb.operator.Operator.SharedObject)
.- Since:
- 7.1 initial release
-
Method Summary
Modifier and TypeMethodDescriptiongetSharedObject
(Object key) get the SharedObject from this Container.Return theOperator.SharedObject.State
of SharedObject on this Container associated with the given key or null if there was no mappingvoid
registerSharedObject
(Object key, Operator.SharedObject value) Add the given SharedObject to this Container.removeSharedObject
(Object key) Remove the SharedObject from this Container.
-
Method Details