Search in sources :

Example 16 with DeferredSerialization

use of org.voltcore.utils.DeferredSerialization in project voltdb by VoltDB.

the class NIOWriteStream method shutdown.

/**
     * Free the pool resources that are held by this WriteStream. The pool itself is thread local
     * and will be freed when the thread terminates.
     */
@Override
synchronized void shutdown() {
    super.shutdown();
    DeferredSerialization ds = null;
    while ((ds = m_queuedWrites.poll()) != null) {
        ds.cancel();
    }
}
Also used : DeferredSerialization(org.voltcore.utils.DeferredSerialization)

Aggregations

DeferredSerialization (org.voltcore.utils.DeferredSerialization)16 ByteBuffer (java.nio.ByteBuffer)11 Test (org.junit.Test)8 Node (org.voltdb.RateLimitedClientNotifier.Node)2 ByteBuf (io.netty_voltpatches.buffer.ByteBuf)1 CompositeByteBuf (io.netty_voltpatches.buffer.CompositeByteBuf)1 IOException (java.io.IOException)1 Matchers.anyLong (org.mockito.Matchers.anyLong)1 VoltMessage (org.voltcore.messaging.VoltMessage)1 BBContainer (org.voltcore.utils.DBBPool.BBContainer)1 InitiateResponseMessage (org.voltdb.messaging.InitiateResponseMessage)1 Iv2InitiateTaskMessage (org.voltdb.messaging.Iv2InitiateTaskMessage)1