public abstract class OChannel extends Object
| Modifier and Type | Field and Description |
|---|---|
InputStream |
inStream |
protected com.orientechnologies.common.concur.resource.OAdaptiveLock |
lockRead |
protected com.orientechnologies.common.concur.resource.OAdaptiveLock |
lockWrite |
OutputStream |
outStream |
Socket |
socket |
int |
socketBufferSize |
protected long |
timeout |
| Constructor and Description |
|---|
OChannel(Socket iSocket,
OContextConfiguration iConfig) |
| Modifier and Type | Method and Description |
|---|---|
void |
acquireReadLock() |
void |
acquireWriteLock() |
void |
close() |
void |
connected() |
void |
flush() |
void |
releaseReadLock() |
void |
releaseWriteLock() |
String |
toString() |
protected void |
updateMetricFlushes() |
protected void |
updateMetricReceivedBytes(int iDelta) |
protected void |
updateMetricTransmittedBytes(int iDelta) |
public Socket socket
public InputStream inStream
public OutputStream outStream
protected final com.orientechnologies.common.concur.resource.OAdaptiveLock lockRead
protected final com.orientechnologies.common.concur.resource.OAdaptiveLock lockWrite
protected long timeout
public int socketBufferSize
public OChannel(Socket iSocket, OContextConfiguration iConfig) throws IOException
IOExceptionpublic void acquireWriteLock()
public void releaseWriteLock()
public void acquireReadLock()
public void releaseReadLock()
public void flush()
throws IOException
IOExceptionpublic void close()
public void connected()
protected void updateMetricTransmittedBytes(int iDelta)
protected void updateMetricReceivedBytes(int iDelta)
protected void updateMetricFlushes()
Copyright © 2009-2013 Orient Technologies. All Rights Reserved.