Class MountHandle
- java.lang.Object
-
- org.jboss.as.server.deployment.module.MountHandle
-
- All Implemented Interfaces:
Closeable,AutoCloseable
public class MountHandle extends Object implements Closeable
Wrapper object to hold onto and close a VFS mount handle. If the provided mount handle is null then no action will be taken.- Author:
- John E. Bailey, Jason T. Greene, Stuart Douglas
-
-
Constructor Summary
Constructors Constructor Description MountHandle(Closeable handle)Deprecated.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description voidclose()Forcefully close this handle.static MountHandlecreate(Closeable handle)
-
-
-
Constructor Detail
-
MountHandle
@Deprecated public MountHandle(Closeable handle)
Deprecated.Construct new instance with the mount handle to close.- Parameters:
handle- The mount handle to close
-
-
Method Detail
-
create
public static MountHandle create(Closeable handle)
-
close
public void close()
Forcefully close this handle. Use with caution.- Specified by:
closein interfaceAutoCloseable- Specified by:
closein interfaceCloseable
-
-