Package org.nustaq.kontraktor.asyncio
Class ObjectAsyncSocketConnection
java.lang.Object
org.nustaq.kontraktor.asyncio.AsyncSocketConnection
org.nustaq.kontraktor.asyncio.QueuingAsyncSocketConnection
org.nustaq.kontraktor.asyncio.ObjectAsyncSocketConnection
- All Implemented Interfaces:
ObjectSocket
public abstract class ObjectAsyncSocketConnection extends QueuingAsyncSocketConnection implements ObjectSocket
Created by moelrue on 5/7/15.
-
Field Summary
Fields inherited from class org.nustaq.kontraktor.asyncio.QueuingAsyncSocketConnection
MAX_Q_SIZE_BYTES, readQueue, wrapper, writeQueueFields inherited from class org.nustaq.kontraktor.asyncio.AsyncSocketConnection
chan, isClosed, key, myActor, readBuf, theExecutingThread, writePromise, writingBuffer -
Constructor Summary
Constructors Constructor Description ObjectAsyncSocketConnection(java.nio.channels.SelectionKey key, java.nio.channels.SocketChannel chan)ObjectAsyncSocketConnection(org.nustaq.serialization.FSTConfiguration conf, java.nio.channels.SelectionKey key, java.nio.channels.SocketChannel chan) -
Method Summary
Modifier and Type Method Description voiddataReceived(org.nustaq.offheap.BinaryQueue q)voidflush()org.nustaq.serialization.FSTConfigurationgetConf()intgetId()java.lang.ThrowablegetLastError()abstract voidreceivedObject(java.lang.Object o)voidsetConf(org.nustaq.serialization.FSTConfiguration conf)set by outer machineryvoidsetLastError(java.lang.Throwable ex)voidwriteObject(java.lang.Object o)Methods inherited from class org.nustaq.kontraktor.asyncio.QueuingAsyncSocketConnection
checkQSize, dataReceived, tryFlush, write, write, write, writeMethods inherited from class org.nustaq.kontraktor.asyncio.AsyncSocketConnection
canWrite, checkThread, close, closed, directWrite, isClosedMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.nustaq.kontraktor.remoting.base.ObjectSocket
canWrite, close, getConnectionIdentifier, isClosed
-
Constructor Details
-
ObjectAsyncSocketConnection
public ObjectAsyncSocketConnection(java.nio.channels.SelectionKey key, java.nio.channels.SocketChannel chan) -
ObjectAsyncSocketConnection
public ObjectAsyncSocketConnection(org.nustaq.serialization.FSTConfiguration conf, java.nio.channels.SelectionKey key, java.nio.channels.SocketChannel chan)
-
-
Method Details
-
setConf
public void setConf(org.nustaq.serialization.FSTConfiguration conf)Description copied from interface:ObjectSocketset by outer machinery- Specified by:
setConfin interfaceObjectSocket
-
getConf
public org.nustaq.serialization.FSTConfiguration getConf()- Specified by:
getConfin interfaceObjectSocket
-
dataReceived
public void dataReceived(org.nustaq.offheap.BinaryQueue q)- Specified by:
dataReceivedin classQueuingAsyncSocketConnection
-
getId
public int getId()- Specified by:
getIdin interfaceObjectSocket
-
receivedObject
public abstract void receivedObject(java.lang.Object o) -
writeObject
public void writeObject(java.lang.Object o)- Specified by:
writeObjectin interfaceObjectSocket
-
flush
public void flush() throws java.io.IOException, java.lang.Exception- Specified by:
flushin interfaceObjectSocket- Throws:
java.io.IOExceptionjava.lang.Exception
-
getLastError
public java.lang.Throwable getLastError()- Specified by:
getLastErrorin interfaceObjectSocket
-
setLastError
public void setLastError(java.lang.Throwable ex)- Specified by:
setLastErrorin interfaceObjectSocket
-