/** * Added to ensure that the {@link FutureTask} is cancelled in case the * caller does not shutdown the {@link StatementBuffer} normally. */ @Override protected void finalize() throws Throwable { super.finalize(); if (ft != null) { reset(); } }
/** * Added to ensure that the {@link FutureTask} is cancelled in case the * caller does not shutdown the {@link StatementBuffer} normally. */ @Override protected void finalize() throws Throwable { super.finalize(); if (ft != null) { reset(); } }
buffer.reset();
buffer.reset();