public class DummyTrafficControlChannel extends AbstractControlChannel implements java.lang.Runnable, java.util.Observer
anon.client.DummyTrafficControlChannel#DT_MAX_INTERVAL_MS}| Modifier and Type | Field and Description |
|---|---|
static int |
DT_DISABLE |
static int |
DT_MAX_INTERVAL_MS |
static int |
DT_MIN_INTERVAL_MS |
| Constructor and Description |
|---|
DummyTrafficControlChannel(Multiplexer a_multiplexer,
IServiceContainer a_serviceContainer)
Creates a new DummyTrafficControlChannel instance.
|
| Modifier and Type | Method and Description |
|---|---|
void |
run()
Lets the thread sleep for the given interval.
|
void |
setDummyTrafficInterval(int a_interval)
Changes the dummy traffic interval.
|
void |
stop()
Halts the internal dummy traffic thread.
|
void |
update(java.util.Observable a_observer,
java.lang.Object a_argument)
This is the Observer implementation.
|
isSending, processReceivedPacket, sendRawMessagecreateEmptyMixPacket, deleteChannel, isClosed, multiplexerClosed, sendPacketpublic static final int DT_MIN_INTERVAL_MS
public static final int DT_MAX_INTERVAL_MS
public static final int DT_DISABLE
public DummyTrafficControlChannel(Multiplexer a_multiplexer, IServiceContainer a_serviceContainer)
public void run()
run in interface java.lang.Runnablepublic void stop()
public void update(java.util.Observable a_observer,
java.lang.Object a_argument)
update in interface java.util.Observera_observer - The observed object (Multiplexer).a_argument - The notification (PacketProcessedEvent).public void setDummyTrafficInterval(int a_interval)
a_interval - The new dummy traffic interval in milliseconds or DT_DISABLE, if dummy
traffic shall be disabled.Copyright © 2023. All rights reserved.