fulmine
Interface ILifeCycle

All Superinterfaces:
IDestroyable
All Known Subinterfaces:
IChannel, IChannelState, IComponent, IConnection, IConnectionBroker, IConnectionDiscoverer, IContainer, IContainerDefinitionField, IDistributionManager, IDistributionState, IEventManager, IEventSource, IField, IFrameworkContext, IFTContextStateListener, IFulmineContext, ILifeCycleEventListener, IModelManager, IPriorityLifeCycleEventListener, IRpcManager, IRpcRegistry, ISubscriptionManager, ISystemEventSource, ITaskExecutor
All Known Implementing Classes:
AbstractComponent, AbstractConnectionDiscoverer, AbstractContainer, AbstractDynamicContainer, AbstractEventProcessingContainer, AbstractField, AbstractLifeCycle, AbstractSocketChannelConnection, ActiveAsymmetricEventProcessor, ActiveEventListener, AsymmetricEventProcessor, BasicContainer, BooleanField, Channel, ChannelTransmissionListener, ContainerDefinitionField, ContainerSubscriptionManager, DescriptorField, DoubleField, EventProcessor, EventSource, FloatField, FTContext, FTDistributionManager, FulmineContext, ImageEvent, IntegerField, LongField, MultiEventListener, MultiSystemEventListener, PriorityMultiEventListener, Record, RemoteContainerSubscriptionManager, RpcManager, RpcRegistry, SelectorTasks, StringField, SubscriptionManager, SystemEventSource, TaskExecutor, TcpConnection, TcpConnectionBroker, TcpConnectionDiscoverer, TcpConnectionParameters

public interface ILifeCycle
extends IDestroyable

An object that has a life-cycle:

 created -> active -> destroyed
 
When the object is created it is inactive. The start() method activates it. The IDestroyable.destroy() method destroys it.

Author:
Ramon Servadei

Method Summary
 boolean isActive()
          Determine if this life-cycle object is active.
 void start()
          Activate (start) this object.
 
Methods inherited from interface fulmine.IDestroyable
destroy
 

Method Detail

start

void start()
Activate (start) this object. This allocates system resources required for the object to operate. This operation is idempotent.

This method may throw a RuntimeException if it fails to activate the object.


isActive

boolean isActive()
Determine if this life-cycle object is active.

Returns:
true if the object is active


Copyright © 2007-2009. All Rights Reserved.