@ThreadSafe class ShouldDoBlockingSessionRefresh extends SdkPredicate<SessionCredentialsHolder>
Modifier and Type | Field and Description |
---|---|
private static int |
EXPIRY_TIME_MILLIS
Time before expiry within which credentials will be renewed synchronously.
|
Constructor and Description |
---|
ShouldDoBlockingSessionRefresh() |
Modifier and Type | Method and Description |
---|---|
private static boolean |
expiring(java.util.Date expiry)
Session credentials that expire in less than a minute are considered expiring.
|
boolean |
test(SessionCredentialsHolder sessionCredentialsHolder)
Evaluates this predicate on the given argument
|
private static final int EXPIRY_TIME_MILLIS
public boolean test(SessionCredentialsHolder sessionCredentialsHolder)
SdkPredicate
test
in class SdkPredicate<SessionCredentialsHolder>
sessionCredentialsHolder
- The input argumentprivate static boolean expiring(java.util.Date expiry)
expiry
- expiration time of a session