Interface CloudInstancesProviderCallback
-
- All Known Subinterfaces:
CloudInstancesProviderExtendedCallback
,UpdateInstancesCollectionTask
- All Known Implementing Classes:
CloudInstancesProviderExtendedCallbackAdapter
,CloudStateHolder
,UpdateInstancesCollectionTaskImpl
public interface CloudInstancesProviderCallback
- Since:
- 5.0
- Author:
- Eugene Petrenko
-
-
Method Summary
All Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description default boolean
processImage(CloudProfile profile, CloudImage image)
Indicates whether to process this particular image.boolean
processInstance(CloudProfile profile, CloudInstance instance)
Processes instance and indicates whether to process next allocated instance
-
-
-
Method Detail
-
processInstance
boolean processInstance(@NotNull CloudProfile profile, @NotNull CloudInstance instance)
Processes instance and indicates whether to process next allocated instance- Parameters:
profile
- profileinstance
- instance- Returns:
- true to continue iteration and false otherwise
-
processImage
default boolean processImage(@NotNull CloudProfile profile, @NotNull CloudImage image)
Indicates whether to process this particular image. UnlikeprocessInstance(CloudProfile, CloudInstance)
returning false will skip just this image and continue further processing- Parameters:
profile
-image
-- Returns:
- true to process this image
-
-