|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object de.nava.informa.utils.toolkit.ChannelRecord
public class ChannelRecord
Internal channel record. Used by Scheduler
and WorkersManager
to hold information about channels.
Field Summary | |
---|---|
static int |
PRIO_HIGH
High priority. |
static int |
PRIO_LOW
Low priority. |
static int |
PRIO_NORMAL
Normal priority. |
Constructor Summary | |
---|---|
ChannelRecord(ChannelIF channel,
long period,
int priority)
Creates channel record. |
Method Summary | |
---|---|
ChannelIF |
getChannel()
Returns channel object. |
long |
getPeriod()
Returns current period of updates. |
int |
getPriority()
Returns priority of poll. |
boolean |
isCanceled()
Returns cancel-status of record. |
boolean |
isFormatResolved()
Returns TRUE if format of channel is resolved. |
void |
setCanceled(boolean aCanceled)
Sets cancel-status of record. |
void |
setFormatResolved(boolean formatResolved)
Sets the state of format resolution flag. |
void |
setPeriod(long period)
Sets new period of updates (just value). |
void |
setPriority(int priority)
Sets priority of poll. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final int PRIO_LOW
public static final int PRIO_NORMAL
public static final int PRIO_HIGH
Constructor Detail |
---|
public ChannelRecord(ChannelIF channel, long period, int priority)
channel
- channel.period
- period of poll in milliseconds.priority
- priority of poll.Method Detail |
---|
public final int getPriority()
PRIO_LOW
,
PRIO_NORMAL
,
PRIO_HIGH
public final void setPriority(int priority)
priority
- priority of poll.PRIO_LOW
,
PRIO_NORMAL
,
PRIO_HIGH
public final long getPeriod()
public final void setPeriod(long period)
period
- new period setting in milliseconds.public final ChannelIF getChannel()
public final boolean isFormatResolved()
public final void setFormatResolved(boolean formatResolved)
formatResolved
- TRUE if channel format is already resolved.public void setCanceled(boolean aCanceled)
aCanceled
- true
to cancel processing.public boolean isCanceled()
true
if processing of this record has been canceled.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |