Class ImageCloseBehaviour
- java.lang.Object
-
- com.oracle.bedrock.runtime.docker.options.ImageCloseBehaviour
-
- All Implemented Interfaces:
com.oracle.bedrock.Option,Consumer<DockerImage>
public class ImageCloseBehaviour extends Object implements com.oracle.bedrock.Option, Consumer<DockerImage>
AnEnumandOptionrepresenting the types of behaviour to occur when closing aDockerImage.Copyright (c) 2016. All Rights Reserved. Oracle Corporation.
Oracle is a registered trademark of Oracle Corporation and/or its affiliates.- Author:
- Jonathan Knight
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description voidaccept(DockerImage image)Perform thisImageCloseBehaviour's action on the specifiedDockerImage.static ImageCloseBehaviournone()Do nothing when an image application is closed.static ImageCloseBehaviourremove()Remove the Docker image when an image application is closed.
-
-
-
Method Detail
-
accept
public void accept(DockerImage image)
Perform thisImageCloseBehaviour's action on the specifiedDockerImage.- Specified by:
acceptin interfaceConsumer<DockerImage>- Parameters:
image- theDockerImageto have the action performed on
-
none
public static ImageCloseBehaviour none()
Do nothing when an image application is closed.- Returns:
- an
ImageCloseBehaviour
-
remove
@Default public static ImageCloseBehaviour remove()
Remove the Docker image when an image application is closed.- Returns:
- an
ImageCloseBehaviour
-
-