public static void setTtl ( FileSystem fs , AlluxioURI path , long ttlMs , TtlAction ttlAction ) throws AlluxioException , IOException { SetAttributePOptions options = SetAttributePOptions . newBuilder ( ) . setRecursive ( true ) . setCommonOptions ( FileSystemMasterCommonPOptions . newBuilder ( ) . setTtl ( ttlMs ) . setTtlAction ( ttlAction ) . build ( ) ) . build ( ) ; fs . setAttribute ( path , options ) ; }
Sets a new TTL value or unsets an existing TTL value for file at path .