Class/Object

fm.common

ReloadableResource

Related Docs: object ReloadableResource | package common

Permalink

abstract class ReloadableResource[T] extends Logging

Linear Supertypes
Known Subclasses
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. ReloadableResource
  2. Logging
  3. AnyRef
  4. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. All

Instance Constructors

  1. new ReloadableResource()

    Permalink

Abstract Value Members

  1. abstract def defaultResource: Option[T]

    Permalink

    A backup backup resource that will be used if the files and backup cannot be loaded

    A backup backup resource that will be used if the files and backup cannot be loaded

    Attributes
    protected
  2. abstract def loadFromBackup(): Option[T]

    Permalink

    Load the resource from it's backup source (if any)

    Load the resource from it's backup source (if any)

    Attributes
    protected
  3. abstract def loadFromPrimary(): Option[T]

    Permalink

    Load the resource from it's primary source

    Load the resource from it's primary source

    Attributes
    protected
  4. abstract def lookupLastModified(): Long

    Permalink

    The Last Modified time of the resource (can be set to System.currentTimeMillis to always reload)

    The Last Modified time of the resource (can be set to System.currentTimeMillis to always reload)

    Attributes
    protected

Concrete Value Members

  1. final def !=(arg0: Any): Boolean

    Permalink
    Definition Classes
    AnyRef → Any
  2. final def ##(): Int

    Permalink
    Definition Classes
    AnyRef → Any
  3. final def ==(arg0: Any): Boolean

    Permalink
    Definition Classes
    AnyRef → Any
  4. final def apply(): T

    Permalink

    Get the current version of the resource

  5. final def asInstanceOf[T0]: T0

    Permalink
    Definition Classes
    Any
  6. final def clear(): Unit

    Permalink

    Clear the reference to the current version of the resource.

    Clear the reference to the current version of the resource.

    NOTE: Calling apply() after this will return null

  7. def clone(): AnyRef

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  8. final def disableAutoUpdateCheck(): Unit

    Permalink

    Disable the auto update checks

  9. final def enableAutoUpdateCheck(delaySeconds: Int = 300, periodSeconds: Int = 300): Unit

    Permalink

    Enable checking and automatic reload of the resource if the external file is updated

  10. final def eq(arg0: AnyRef): Boolean

    Permalink
    Definition Classes
    AnyRef
  11. def equals(arg0: Any): Boolean

    Permalink
    Definition Classes
    AnyRef → Any
  12. def finalize(): Unit

    Permalink
    Definition Classes
    ReloadableResource → AnyRef
  13. final def getClass(): Class[_]

    Permalink
    Definition Classes
    AnyRef → Any
  14. def hashCode(): Int

    Permalink
    Definition Classes
    AnyRef → Any
  15. final def isAutoUpdateCheckEnabled: Boolean

    Permalink
  16. final def isInstanceOf[T0]: Boolean

    Permalink
    Definition Classes
    Any
  17. final def loadResource(): T

    Permalink

    Directly load the resource and return the result.

    Directly load the resource and return the result. Doesn't touch the current resource in this class.

  18. lazy val logger: Logger

    Permalink
    Attributes
    protected
    Definition Classes
    Logging
  19. final def ne(arg0: AnyRef): Boolean

    Permalink
    Definition Classes
    AnyRef
  20. final def notify(): Unit

    Permalink
    Definition Classes
    AnyRef
  21. final def notifyAll(): Unit

    Permalink
    Definition Classes
    AnyRef
  22. final def reload(): Boolean

    Permalink

    Attempt to reload the current resource.

    Attempt to reload the current resource. If there is a problem the existing version will be left in place

    Returns true if the resource was successfully updated

    TODO: This should probably return an Option[Long] which is the last modified time of the reloaded resource

  23. final def synchronized[T0](arg0: ⇒ T0): T0

    Permalink
    Definition Classes
    AnyRef
  24. def toString(): String

    Permalink
    Definition Classes
    AnyRef → Any
  25. final def wait(): Unit

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  26. final def wait(arg0: Long, arg1: Int): Unit

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  27. final def wait(arg0: Long): Unit

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )

Inherited from Logging

Inherited from AnyRef

Inherited from Any

Ungrouped