class
PublicSettings extends AnyRef
Instance Constructors
-
new
PublicSettings(domain: String, callback: (Try[Map[String, String]]) ⇒ Unit = ..., scheduler: Scheduler = ...)(implicit client: Http, ec: ExecutionContext)
Value Members
-
final
def
!=(arg0: AnyRef): Boolean
-
final
def
!=(arg0: Any): Boolean
-
final
def
##(): Int
-
final
def
==(arg0: AnyRef): Boolean
-
final
def
==(arg0: Any): Boolean
-
final
def
asInstanceOf[T0]: T0
-
val
assymCookieName: String
-
val
bucketName: String
-
def
clone(): AnyRef
-
val
cookieName: String
-
final
def
eq(arg0: AnyRef): Boolean
-
def
equals(arg0: Any): Boolean
-
def
finalize(): Unit
-
final
def
getClass(): Class[_]
-
def
hashCode(): Int
-
final
def
isInstanceOf[T0]: Boolean
-
final
def
ne(arg0: AnyRef): Boolean
-
final
def
notify(): Unit
-
final
def
notifyAll(): Unit
-
def
publicKey: Option[String]
-
def
refresh(): Unit
-
def
start(intervalInSeconds: Int = 60): Unit
-
def
stop(): Boolean
-
final
def
synchronized[T0](arg0: ⇒ T0): T0
-
def
toString(): String
-
final
def
wait(): Unit
-
final
def
wait(arg0: Long, arg1: Int): Unit
-
final
def
wait(arg0: Long): Unit
Inherited from AnyRef
Inherited from Any
Class that contains the static public settings and includes mechanism for fetching the public key. The class is parametrized by domain because the keys will differ for different domains. It also requires a dispatch.Http instance for retrieving the data and an execution context.
Once you have an instance you can call its start method to kick off loading the public data. In a Play app, consider using the
Global
object'sonStart
method to start these calls when the application comes up. If you'd rather use your own scheduler you can do so while still using the PublicSettings class by scheduling your own calls to itsrefresh
method can also schdule the refresh yourself using the instance's