org.jafer.interfaces
Interface Cache

All Known Implementing Classes:
ZClient

public interface Cache

Interface for cache configuration methods

Version:
1.0
Author:
Antony Corfield, Matthew Dovey, Colin Tatham

Method Summary
 int getDataCacheSize()
          Get the current size of the cache
 int getFetchSize()
          Get the current prefetch buffer size
 double getFetchView()
          Get the current prefetch buffer behaviour setting
 void setDataCacheSize(int dataCacheSize)
          Set the size of the internal cache
 void setFetchSize(int fetchSize)
          Set the size of the prefetch buffer
 void setFetchView(double fetchView)
          Set the prefetch buffer behaviour
 

Method Detail

setDataCacheSize

public void setDataCacheSize(int dataCacheSize)
Set the size of the internal cache

Parameters:
dataCacheSize - sizew of cache

getDataCacheSize

public int getDataCacheSize()
Get the current size of the cache

Returns:
cache size

setFetchSize

public void setFetchSize(int fetchSize)
Set the size of the prefetch buffer

Parameters:
fetchSize - buffer size

getFetchSize

public int getFetchSize()
Get the current prefetch buffer size

Returns:
buffer size

setFetchView

public void setFetchView(double fetchView)
Set the prefetch buffer behaviour

Parameters:
fetchView - prefetch beheviour

getFetchView

public double getFetchView()
Get the current prefetch buffer behaviour setting

Returns:
prefetch behaviour