if (purgeListener != null) purgeListener.entryPurged(key);
}
if (!bucket.isEmpty()) {
ByteBuffer byteBuffer = JdbcUtil.marshall(marshaller, bucket);
ps.setBinaryStream(1, new ByteArrayInputStream(byteBuffer.getBuf(), byteBuffer.getOffset(), byteBuffer.getLength()), byteBuffer.getLength());
ps.setLong(2, bucket.timestampOfFirstEntryToExpire());
ps.setString(3, bucket.getBucketIdAsString());
ps.addBatch();
} else {
it.remove();
emptyBuckets.add(bucket);