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
ConstructorsConstructorDescriptionObjectAsyncSocketConnection(SelectionKey key, SocketChannel chan) ObjectAsyncSocketConnection(org.nustaq.serialization.FSTConfiguration conf, SelectionKey key, SocketChannel chan) -
Method Summary
Modifier and TypeMethodDescriptionvoiddataReceived(org.nustaq.offheap.BinaryQueue q) voidflush()org.nustaq.serialization.FSTConfigurationgetConf()intgetId()abstract voidvoidsetConf(org.nustaq.serialization.FSTConfiguration conf) set by outer machineryvoidvoidMethods 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
-
ObjectAsyncSocketConnection
public ObjectAsyncSocketConnection(org.nustaq.serialization.FSTConfiguration conf, SelectionKey key, 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
-
writeObject
- Specified by:
writeObjectin interfaceObjectSocket
-
flush
- Specified by:
flushin interfaceObjectSocket- Throws:
IOExceptionException
-
getLastError
- Specified by:
getLastErrorin interfaceObjectSocket
-
setLastError
- Specified by:
setLastErrorin interfaceObjectSocket
-