|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface ConnectionReleaseTrigger
Interface for releasing a connection.
This can be implemented by various "trigger" objects which are
associated with a connection, for example
a stream
or an entity
or the connection itself.
The methods in this interface can safely be called multiple times.
The first invocation releases the connection, subsequent calls
are ignored.
| Method Summary | |
|---|---|
void |
abortConnection()
Releases the connection without the option of keep-alive. |
void |
releaseConnection()
Releases the connection with the option of keep-alive. |
| Method Detail |
|---|
void releaseConnection()
throws java.io.IOException
abortConnection for a hard release. The
connection may be reused as specified by the duration.
java.io.IOException - in case of an IO problem. The connection will be released
anyway.
void abortConnection()
throws java.io.IOException
releaseConnection for a graceful release.
java.io.IOException - in case of an IO problem.
The connection will be released anyway.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||