public abstract class SessionMirror extends Object implements Closeable
try (SessionMirror session = ...) {
// do something
session.complete(); // or session.abort();
}
| Modifier and Type | Class and Description |
|---|---|
static class |
SessionMirror.Null
A void implementation of
SessionMirror. |
| Constructor and Description |
|---|
SessionMirror() |
| Modifier and Type | Method and Description |
|---|---|
abstract void |
abort()
Aborts and releases this session.
|
abstract void |
close()
Closes this session.
|
abstract void |
complete()
Completes and releases this session.
|
abstract String |
getId()
Returns the current session ID.
|
public abstract String getId()
public abstract void complete()
throws IOException
IOException - if failed to detach from the specified sessionpublic abstract void abort()
throws IOException
IOException - if failed to detach from the specified sessionpublic abstract void close()
throws IOException
close in interface Closeableclose in interface AutoCloseableIOException - if failed to close this sessionCopyright © 2011–2018 Asakusa Framework Team. All rights reserved.