@Override
            public double sample() {
                // Divide result by 1024 so that we return the result in Kb.
                return incomingCounter.getAndSet(0)/1024d;
            }
Increments the counter of written bytes by delta.

@param delta the delta of bytes that were written.
xmppserver/src/main/java/org/jivesoftware/openfire/net/ServerTrafficCounter.java