public abstract class OChannel extends OListenerManger<OChannelListener>
Modifier and Type | Field and Description |
---|---|
InputStream |
inStream |
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() |
static String |
getLocalIpAddress(boolean iFavoriteIp4) |
OAdaptiveLock |
getLockWrite() |
void |
releaseReadLock() |
void |
releaseWriteLock() |
String |
toString() |
boolean |
tryAcquireWriteLock(long iTimeout) |
protected void |
updateMetricFlushes() |
protected void |
updateMetricReceivedBytes(int iDelta) |
protected void |
updateMetricTransmittedBytes(int iDelta) |
browseListeners, getListenersCopy, registerListener, resetListeners, unregisterListener
public volatile Socket socket
public InputStream inStream
public OutputStream outStream
public int socketBufferSize
protected long timeout
public OChannel(Socket iSocket, OContextConfiguration iConfig) throws IOException
IOException
public static String getLocalIpAddress(boolean iFavoriteIp4) throws SocketException
SocketException
public void acquireWriteLock()
public boolean tryAcquireWriteLock(long iTimeout)
public void releaseWriteLock()
public void acquireReadLock()
public void releaseReadLock()
public void flush() throws IOException
IOException
public OAdaptiveLock getLockWrite()
public void close()
public void connected()
protected void updateMetricTransmittedBytes(int iDelta)
protected void updateMetricReceivedBytes(int iDelta)
protected void updateMetricFlushes()
Copyright © 2009–2020 OrientDB. All rights reserved.