Class VstConnection
- java.lang.Object
-
- com.c8db.internal.velocystream.internal.VstConnection
-
- All Implemented Interfaces:
Connection,Closeable,AutoCloseable
- Direct Known Subclasses:
VstConnectionSync
public abstract class VstConnection extends Object implements Connection
-
-
Field Summary
Fields Modifier and Type Field Description protected MessageStoremessageStoreprotected Integertimeout
-
Constructor Summary
Constructors Modifier Constructor Description protectedVstConnection(HostDescription host, Integer timeout, Long ttl, Boolean useSsl, SSLContext sslContext, MessageStore messageStore)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidclose()StringgetConnectionName()booleanisOpen()voidopen()protected voidreadBytesIntoBuffer(byte[] buf, int off, int len)protected ChunkreadChunk()protected voidwriteIntern(Message message, Collection<Chunk> chunks)
-
-
-
Field Detail
-
messageStore
protected final MessageStore messageStore
-
timeout
protected final Integer timeout
-
-
Constructor Detail
-
VstConnection
protected VstConnection(HostDescription host, Integer timeout, Long ttl, Boolean useSsl, SSLContext sslContext, MessageStore messageStore)
-
-
Method Detail
-
isOpen
public boolean isOpen()
-
open
public void open() throws IOException- Throws:
IOException
-
close
public void close()
- Specified by:
closein interfaceAutoCloseable- Specified by:
closein interfaceCloseable
-
writeIntern
protected void writeIntern(Message message, Collection<Chunk> chunks) throws C8DBException
- Throws:
C8DBException
-
readChunk
protected Chunk readChunk() throws IOException
- Throws:
IOException
-
readBytesIntoBuffer
protected void readBytesIntoBuffer(byte[] buf, int off, int len) throws IOException- Throws:
IOException
-
getConnectionName
public String getConnectionName()
-
-