←Select platform

AccessTimeout Property

Summary

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

Syntax
C#
VB
C++
Java
public TimeSpan AccessTimeout { get; set; } 
Public Property AccessTimeout() As System.TimeSpan 
   Get 
   Set 
public:  
   property System::TimeSpan AccessTimeout 
   { 
      System::TimeSpan get() 
      void set(System::TimeSpan value) 
   } 
public long getAccessTimeout() 
public void setAccessTimeout(long value) 

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 21.0.2021.6.30
Products | Support | Contact Us | Intellectual Property Notices
© 1991-2021 LEAD Technologies, Inc. All Rights Reserved.

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