org.jafer.interfaces
Interface Cache

All Known Implementing Classes:
AbstractClient, SRWClient, ZClient

public interface Cache

Interface for cache configuration methods

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

Method Summary
 int getAvailableSlots()
          Returns the number of available slots currently in the cache
 Cache getCache()
          Returns the current record cache object being used
 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 setCache(Cache cache)
          Sets the record cache object to use
 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

setCache

void setCache(Cache cache)
Sets the record cache object to use

Parameters:
cache - The concrete class implementing the org.jafer.record.Cache interface

getCache

Cache getCache()
Returns the current record cache object being used

Returns:
The concrete class implementing the org.jafer.record.Cache interface

setDataCacheSize

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

Parameters:
dataCacheSize - sizew of cache

getDataCacheSize

int getDataCacheSize()
Get the current size of the cache

Returns:
cache size

setFetchSize

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

Parameters:
fetchSize - buffer size

getFetchSize

int getFetchSize()
Get the current prefetch buffer size

Returns:
buffer size

setFetchView

void setFetchView(double fetchView)
Set the prefetch buffer behaviour

Parameters:
fetchView - prefetch beheviour

getFetchView

double getFetchView()
Get the current prefetch buffer behaviour setting

Returns:
prefetch behaviour

getAvailableSlots

int getAvailableSlots()
Returns the number of available slots currently in the cache

Returns:
The number of currently availiable slots