anon.client
Class PacketCounter
java.lang.Object
java.util.Observable
anon.client.PacketCounter
- All Implemented Interfaces:
- java.util.Observer
public class PacketCounter
- extends java.util.Observable
- implements java.util.Observer
- Author:
- Stefan Lieske
Methods inherited from class java.util.Observable |
addObserver, clearChanged, countObservers, deleteObserver, deleteObservers, hasChanged, notifyObservers, notifyObservers, setChanged |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
m_processedDataPackets
private volatile long m_processedDataPackets
- This counts the data-packets for the observers of this class.
m_payPacketCounter
private volatile long m_payPacketCounter
- This counts the packets which have to be paid.
m_internalSynchronization
private java.lang.Object m_internalSynchronization
PacketCounter
public PacketCounter(long a_processedPackets)
PacketCounter
public PacketCounter()
update
public void update(java.util.Observable a_object,
java.lang.Object a_argument)
- Specified by:
update
in interface java.util.Observer
getProcessedPackets
public long getProcessedPackets()
getAndResetBytesForPayment
public long getAndResetBytesForPayment()