CacheableSecondaryAddressFinder class
Finds an atSign's atServer by asking the atDirectory at a root domain and port, and keeps each answer for an hour, or the duration it is given.
- Implemented types
Constructors
- CacheableSecondaryAddressFinder(String _rootDomain, int _rootPort, {Duration? cacheDuration, SecondaryUrlFinder? secondaryFinder, SecureSocketConfig? socketConfig})
Properties
- hashCode → int
-
The hash code for this object.
no setterinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
cacheContains(
String atSign) → bool -
findSecondary(
String atSign, {Duration? timeout}) → Future< SecondaryAddress> -
Finds the atServer address for
atSignby looking it up in the atDirectory.override -
getCacheExpiryTime(
String atSign) → int? - Returns the expiry time of this entry in millisecondsSinceEpoch, or null if this atSign is not in cache
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited
Static Methods
-
getFailedToLookUpExceptionMessage(
String atSign) → String -
getNotFoundExceptionMessage(
String atSign) → String -
stripAtSignFromAtSign(
String atSign) → String
Constants
- defaultCacheDuration → const Duration