Package be.bagofwords.db.remote
Class Connection
- java.lang.Object
-
- be.bagofwords.util.SocketConnection
-
- be.bagofwords.db.remote.Connection
-
- All Implemented Interfaces:
Closeable,AutoCloseable
public class Connection extends be.bagofwords.util.SocketConnectionCreated by koen on 21/05/17.
-
-
Constructor Summary
Constructors Constructor Description Connection(RemoteDataInterface remoteDataInterface, String host, int port, boolean useLargeOutputBuffer, boolean useLargeInputBuffer, RemoteDataInterfaceServer.ConnectionType connectionType)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidclose()longgetLastUsage()booleanisTaken()voidrelease()voidsetTaken(boolean taken)-
Methods inherited from class be.bagofwords.util.SocketConnection
bufferInputStream, bufferOutputStream, checkForError, ensureBuffered, flush, getInetAddress, getIs, getOs, getRemotePort, getSocket, isDebug, isOpen, readBoolean, readByte, readByteArray, readByteArray, readDouble, readFloat, readInt, readLong, readString, readValue, setDebug, useLargeInputBuffer, useLargeOutputBuffer, writeBoolean, writeByte, writeByteArray, writeByteArray, writeByteArrayImpl, writeDouble, writeError, writeError, writeFloat, writeInt, writeLong, writeString, writeValue, writeValue
-
-
-
-
Constructor Detail
-
Connection
public Connection(RemoteDataInterface remoteDataInterface, String host, int port, boolean useLargeOutputBuffer, boolean useLargeInputBuffer, RemoteDataInterfaceServer.ConnectionType connectionType) throws IOException
- Throws:
IOException
-
-
Method Detail
-
isTaken
public boolean isTaken()
-
setTaken
public void setTaken(boolean taken)
-
release
public void release()
-
getLastUsage
public long getLastUsage()
-
close
public void close() throws IOException- Specified by:
closein interfaceAutoCloseable- Specified by:
closein interfaceCloseable- Overrides:
closein classbe.bagofwords.util.SocketConnection- Throws:
IOException
-
-