@API(status=STABLE) public class SessionService extends java.lang.Object implements OboSessionService, OboService<OboSessionService>
Constructor and Description |
---|
SessionService(SessionApi sessionApi,
AuthSession authSession,
RetryWithRecoveryBuilder<?> retryBuilder) |
SessionService(SessionApi sessionApi,
RetryWithRecoveryBuilder<?> retryBuilder) |
Modifier and Type | Method and Description |
---|---|
protected <T> T |
executeAndRetry(java.lang.String name,
SupplierWithApiException<T> supplier) |
UserV2 |
getSession()
Retrieves the
UserV2 session from the pod using an AuthSession holder. |
OboSessionService |
obo(AuthSession oboSession)
Returns a new service instance with OBO-enabled endpoints from a given OBO session.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
checkAuthSession
public SessionService(SessionApi sessionApi, AuthSession authSession, RetryWithRecoveryBuilder<?> retryBuilder)
public SessionService(SessionApi sessionApi, RetryWithRecoveryBuilder<?> retryBuilder)
public OboSessionService obo(AuthSession oboSession)
OboService
obo
in interface OboService<OboSessionService>
oboSession
- the OBO sessionpublic UserV2 getSession()
UserV2
session from the pod using an AuthSession
holder.getSession
in interface OboSessionService
protected <T> T executeAndRetry(java.lang.String name, SupplierWithApiException<T> supplier)