Package org.openmuc.jeebus.spine.api
Interface Shutdownable
-
- All Superinterfaces:
java.lang.AutoCloseable
- All Known Implementing Classes:
CharacteristicListDataFunction,DescriptionListDataFunction,EventListDataFunction,FeatureFunction,HeartbeatDataFunction,KeyValueConstraintsListDataFunction,KeyValueDescriptionListDataFunction,KeyValueListDataFunction,LimitConstraintsDataFunction,LimitDescriptionFunction,LimitListDataFunction,LoadControlFeatureFunction,MeasurementConstraintsListDataFunction,MeasurementDescriptionListDataFunction,MeasurementFeatureFunction,MeasurementListDataFunction,MeasurementSeriesListDataFunction,MeasurementThresholdRelationListDataFunction,NodeDataFunction,ParameterDescriptionListDataFunction,PermittedValueSetListDataFunction,ReadAndWriteListFeatureFunction,ReadAndWriteSingleFeatureFunction,ReadListFeatureFunction,ReadSingleFeatureFunction,ServiceDataFunction,StateDataFunction,StateListDataFunction,StateListDataFunction
public interface Shutdownable extends java.lang.AutoCloseableObjects that hold references to long-running threads or executors, open network connections, etc -- directly (as fields on the object) or indirectly (via child objects) -- which can be shut down and released.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description voidclose()Cleanly and promptly shut down this object, as well as all child objects and objects depending on this one.
-
-
-
Method Detail
-
close
void close()
Cleanly and promptly shut down this object, as well as all child objects and objects depending on this one.- Specified by:
closein interfacejava.lang.AutoCloseable- Implementation-Requirements
- implementations should attempt to shut down promptly but still
perform cleanup if possible. There is not currently a timeout mechanism, so
use your judgment.
If any child objects are also
Shutdownable, implementations should callclose()on them as well.
-
-