Class AbstractWriterHandler
java.lang.Object
com.tenio.common.logger.AbstractLogger
com.tenio.common.logger.SystemLogger
com.tenio.core.network.zero.engine.writer.AbstractWriterHandler
- All Implemented Interfaces:
WriterHandler
- Direct Known Subclasses:
DatagramWriterHandler
,SocketWriterHandler
public abstract class AbstractWriterHandler
extends com.tenio.common.logger.SystemLogger
implements WriterHandler
The abstract writer.
- See Also:
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid
allocateBuffer
(int capacity) a Allocates a byte buffer.Retrieves the byte buffer.Retrieves the network writer statistic.Retrieves the blocking queue of sessions.void
setNetworkWriterStatistic
(NetworkWriterStatistic networkWriterStatistic) Set the network writer statistic object.void
setSessionTicketsQueue
(BlockingQueue<Session> sessionTicketsQueue) Set the blocking queue of sessions.Methods inherited from class com.tenio.common.logger.SystemLogger
debug, trace, trace
Methods inherited from class com.tenio.common.logger.AbstractLogger
buildgen, error, error, info, info, info, info, info, info, info, info
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface com.tenio.core.network.zero.engine.writer.WriterHandler
send
-
Constructor Details
-
AbstractWriterHandler
public AbstractWriterHandler()
-
-
Method Details
-
getSessionTicketsQueue
Description copied from interface:WriterHandler
Retrieves the blocking queue of sessions.- Specified by:
getSessionTicketsQueue
in interfaceWriterHandler
- Returns:
- the blocking queue
-
setSessionTicketsQueue
Description copied from interface:WriterHandler
Set the blocking queue of sessions.- Specified by:
setSessionTicketsQueue
in interfaceWriterHandler
- Parameters:
sessionTicketsQueue
- the blocking queue
-
getNetworkWriterStatistic
Description copied from interface:WriterHandler
Retrieves the network writer statistic.- Specified by:
getNetworkWriterStatistic
in interfaceWriterHandler
- Returns:
- the network writer statistic object
-
setNetworkWriterStatistic
Description copied from interface:WriterHandler
Set the network writer statistic object.- Specified by:
setNetworkWriterStatistic
in interfaceWriterHandler
- Parameters:
networkWriterStatistic
- the network writer statistic object
-
getBuffer
Description copied from interface:WriterHandler
Retrieves the byte buffer.- Specified by:
getBuffer
in interfaceWriterHandler
- Returns:
- the byte buffer
-
allocateBuffer
public void allocateBuffer(int capacity) Description copied from interface:WriterHandler
a Allocates a byte buffer.- Specified by:
allocateBuffer
in interfaceWriterHandler
- Parameters:
capacity
- the capacity
-