Package com.arangodb.vst.internal
Class VstConnection<T>
java.lang.Object
com.arangodb.vst.internal.VstConnection<T>
- All Implemented Interfaces:
Connection
,Closeable
,AutoCloseable
- Direct Known Subclasses:
VstConnectionAsync
- Author:
- Mark Vollmary
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid
close()
protected abstract void
boolean
isOpen()
void
open()
protected void
readBytesIntoBuffer
(byte[] buf, int off, int len) protected Chunk
protected T
void
abstract T
write
(Message message, Collection<Chunk> chunks) protected void
writeIntern
(Message message, Collection<Chunk> chunks) Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface com.arangodb.internal.net.Connection
executeAsync
-
Field Details
-
messageStore
-
timeout
-
-
Constructor Details
-
VstConnection
-
-
Method Details
-
sendKeepAlive
-
write
-
doKeepAlive
protected abstract void doKeepAlive() -
isOpen
public boolean isOpen() -
open
- Throws:
IOException
-
close
public void close()- Specified by:
close
in interfaceAutoCloseable
- Specified by:
close
in interfaceCloseable
-
writeIntern
-
readChunk
- Throws:
IOException
-
readBytesIntoBuffer
- Throws:
IOException
-
setJwt
- Specified by:
setJwt
in interfaceConnection
-