Implementation Note
it should keep only the minimum number of object references to reduce heap usage in case the user abandons connection without closing it first.
| Modifier and Type | Field and Description |
|---|---|
| private static final Logger | |
| private static final AtomicReferenceFieldUpdater | |
| private volatile @Nullable PGStream |
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| public void | |
| public void | close()
Implements java. Closes this stream and releases any system resources associated with it. |
| public boolean | |
| public void |
| LOGGER | back to summary |
|---|---|
| private static final Logger LOGGER | |
| PG_STREAM_UPDATER | back to summary |
|---|---|
private static final AtomicReferenceFieldUpdater<QueryExecutorCloseAction, @Nullable PGStream> PG_STREAM_UPDATER
| |
| pgStream | back to summary |
|---|---|
| private volatile @Nullable PGStream pgStream | |
| QueryExecutorCloseAction | back to summary |
|---|---|
| public QueryExecutorCloseAction(PGStream pgStream) | |
| abort | back to summary |
|---|---|
| public void abort() | |
| close | back to summary |
|---|---|
| public void close() throws IOException Implements java. Doc from java. Closes this stream and releases any system resources associated with it. If the stream is already closed then invoking this method has no effect. As noted in
| |
| isClosed | back to summary |
|---|---|
| public boolean isClosed() | |
| sendCloseMessage | back to summary |
|---|---|
| public void sendCloseMessage(PGStream pgStream) throws IOException | |