←Select platform

AccessTimeout Property

Summary

Determines how long to wait between file access errors before an exception is thrown.

Syntax
C#
C++/CLI
Java
Python
public TimeSpan AccessTimeout { get; set; } 
public:  
   property System::TimeSpan AccessTimeout 
   { 
      System::TimeSpan get() 
      void set(System::TimeSpan value) 
   } 
public long getAccessTimeout() 
public void setAccessTimeout(long value) 
AccessTimeout # get and set (FileCache) 

Property Value

A value that determines how long to wait between file access errors before an exception is thrown. Default value is 4 seconds.

Remarks

The cache uses a file system and the items can be accessed by multiple threads or even processes at the same. When the cache is updating a cache item or its policy, the file on disk is opened with exclusive write access. Meaning if another thread or process is trying to access the same item, an error is occurred. In this case, the cache will re-try the access at specified small intervals till it succeeds. If it cannot access the file after AccessTimeout, the exception is thrown.

Requirements

Target Platforms

Help Version 23.0.2024.2.29
Products | Support | Contact Us | Intellectual Property Notices
© 1991-2024 LEAD Technologies, Inc. All Rights Reserved.

Leadtools.Caching Assembly
Products | Support | Contact Us | Intellectual Property Notices
© 1991-2023 LEAD Technologies, Inc. All Rights Reserved.