public abstract class SessionProvider extends BaseProvider<SessionProfile>
| Constructor and Description |
|---|
SessionProvider() |
| Modifier and Type | Method and Description |
|---|---|
abstract SessionMirror |
create(String id)
Creates a new session and acquires the session with the specified session ID.
|
abstract void |
delete(String id)
Deletes a session with the specified session ID.
|
abstract List<String> |
getCreatedIds()
Returns session IDs which are created and not completed/aborted.
|
abstract SessionMirror |
open(String id)
Opens and acquires a created session with the specified session ID.
|
configurepublic abstract List<String> getCreatedIds() throws IOException
IOException - if failed to list IDspublic abstract SessionMirror create(String id) throws SessionException, IOException
id - target session IDSessionException - if session was invalid stateIOException - if failed to create a new sessionIllegalArgumentException - if any parameter is nullpublic abstract SessionMirror open(String id) throws SessionException, IOException
id - target session IDSessionException - if session was invalid stateIOException - if failed to open the sessionIllegalArgumentException - if any parameter is nullpublic abstract void delete(String id) throws SessionException, IOException
id - target session IDSessionException - if session was invalid state, except the session was brokenIOException - if failed to delete the sessionIllegalArgumentException - if any parameter is nullCopyright © 2011–2019 Asakusa Framework Team. All rights reserved.