⇒ Index (Frames) | ⇒ Index (No Frames) | ⇒ Package | ⇒ Package Tree | ⇒ Full Tree 
com.tildemh.debbug

Class CachePolicy

java.lang.Object|
+--com.tildemh.debbug.CachePolicy


publicclass CachePolicy
extends java.lang.Object

Policy to determine when to check for bug reports online.

This is released under the terms of the GNU Lesser General Public License (LGPL). See the COPYING file for details.

Author:
© Mark Howard <mh@debian.org> 2002

Field Summary

static CachePolicy

ALWAYS_CHECK

Always check online.

static CachePolicy

NEVER_CHECK

Connections will never be made to the internet.

Method Summary

boolean

equals(CachePolicy test)

int

getValue()

Field Details

ALWAYS_CHECK

publicstatic CachePolicyALWAYS_CHECK

Always check online.


NEVER_CHECK

publicstatic CachePolicyNEVER_CHECK

Connections will never be made to the internet. If a report is not found in cache, a not found exception will be raised. This may be useful for implementing an offline mode.

Method Details

equals

publicbooleanequals(CachePolicy test)

Parameters:
test
Returns:
true if two are the same

getValue

publicintgetValue()

Returns:
internal representation