Results 1 to 3 of 3
  1. #1
    kate88 is offline Member
    Join Date
    Nov 2010
    Posts
    10
    Rep Power
    0

    Default Autodeleting mechanism

    Hi!
    I have application (deployed on jboss) which creates some files. What I need to do is to delete automatically files after for example 5 minutes. Is there any library which provides such deleting mechanism?

  2. #2
    Petr's Avatar
    Petr is offline Senior Member
    Join Date
    Jan 2011
    Location
    Russia
    Posts
    620
    Rep Power
    4

  3. #3
    toadaly is offline Senior Member
    Join Date
    Jan 2009
    Posts
    671
    Rep Power
    6

    Default

    Not that I'm aware of. The 'File" api has a deleteOnExit method, but not one that deletes after say, 5 minutes.

    For that, you could create a java.util.Timer that does this.

Similar Threads

  1. Replies: 2
    Last Post: 10-04-2010, 02:50 PM
  2. Ldap bind mechanism in java
    By ppo in forum Advanced Java
    Replies: 5
    Last Post: 06-10-2010, 03:25 AM
  3. XML Based theming mechanism
    By Y. Progammer in forum New To Java
    Replies: 0
    Last Post: 02-27-2010, 07:16 PM
  4. Replies: 2
    Last Post: 12-29-2009, 11:53 AM
  5. Replies: 0
    Last Post: 07-11-2008, 04:39 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •