- java.lang.Object
-
- com.aoindustries.aoserv.client.AOServConnection
-
- All Implemented Interfaces:
Closeable,AutoCloseable
- Direct Known Subclasses:
SocketConnection
public abstract class AOServConnection extends Object implements Closeable
AnAOServConnectionis one stream of communication between the client and the server.- Author:
- AO Industries, Inc.
- See Also:
AOServConnector
-
-
Field Summary
Fields Modifier and Type Field Description protected AOServConnectorconnectorThe connector that this connection is part of.
-
Constructor Summary
Constructors Modifier Constructor Description protectedAOServConnection(AOServConnector connector)Creates a newAOServConnection.
-
-
-
Field Detail
-
connector
protected final AOServConnector connector
The connector that this connection is part of.
-
-
Constructor Detail
-
AOServConnection
protected AOServConnection(AOServConnector connector)
Creates a newAOServConnection.
-
-
Method Detail
-
close
public void close() throws IOExceptionReleases this connection back to the pool.- Specified by:
closein interfaceAutoCloseable- Specified by:
closein interfaceCloseable- Throws:
IOException- See Also:
AOServConnector.release(com.aoindustries.aoserv.client.AOServConnection)
-
-