
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) |
String |
getLocalSocketAddress() |
OAdaptiveLock |
getLockRead() |
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, unregisterListenerpublic volatile Socket socket
public InputStream inStream
public OutputStream outStream
public int socketBufferSize
protected long timeout
public OChannel(Socket iSocket, OContextConfiguration iConfig) throws IOException
IOExceptionpublic static String getLocalIpAddress(boolean iFavoriteIp4) throws SocketException
SocketExceptionpublic void acquireWriteLock()
public boolean tryAcquireWriteLock(long iTimeout)
public void releaseWriteLock()
public void acquireReadLock()
public void releaseReadLock()
public void flush()
throws IOException
IOExceptionpublic OAdaptiveLock getLockRead()
public OAdaptiveLock getLockWrite()
public void close()
public void connected()
public String getLocalSocketAddress()
protected void updateMetricTransmittedBytes(int iDelta)
protected void updateMetricReceivedBytes(int iDelta)
protected void updateMetricFlushes()
Copyright © 2009–2025 OrientDB. All rights reserved.