public interface Session extends SagaObject
NO_WAIT, WAIT_FOREVER
Modifier and Type | Method and Description |
---|---|
void |
addContext(Context context)
Attaches a deep copy of the specified security context to the session.
|
void |
close()
Closes a SAGA session.
|
void |
close(float timeoutInSeconds)
Closes a SAGA session.
|
Context[] |
listContexts()
Retrieves all contexts attached to the session.
|
void |
removeContext(Context context)
Detaches the specified security context from the session.
|
clone, getId, getSession
void addContext(Context context) throws NoSuccessException, TimeoutException
context
- the context to be added.NoSuccessException
- is thrown when the implementation is not able to initialize
the context, and cannot use the context as-is.TimeoutException
- is thrown if the context initialization implies a remote operation,
and that operation times out.void removeContext(Context context) throws DoesNotExistException
context
- the context to be removed.DoesNotExistException
- is thrown when the session does not contain the specified
context.Context[] listContexts()
void close()
void close(float timeoutInSeconds)
timeoutInSeconds
- the timeout in seconds.Copyright © 2016 Open Grid Forum. All rights reserved.