|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object de.nava.informa.impl.basic.ChannelSubscription
public class ChannelSubscription
In-Memory implementation of the ChannelSubscriptionIF interface.
Constructor Summary | |
---|---|
ChannelSubscription(ChannelIF channel)
Default constructor sets to an inactive channel (with an update interval of 3 hours, used when activated). |
|
ChannelSubscription(ChannelIF channel,
boolean active,
int interval)
|
Method Summary | |
---|---|
ChannelIF |
getChannel()
|
int |
getUpdateInterval()
|
boolean |
isActive()
|
void |
setActive(boolean active)
Activate/Deactivate channel update behaviour. |
void |
setChannel(ChannelIF channel)
|
void |
setUpdateInterval(int interval)
Sets the interval time between channel updates. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public ChannelSubscription(ChannelIF channel)
channel
- the channel.public ChannelSubscription(ChannelIF channel, boolean active, int interval)
Method Detail |
---|
public ChannelIF getChannel()
getChannel
in interface WithChannelMIF
public void setChannel(ChannelIF channel)
setChannel
in interface WithChannelMIF
channel
- the channel, this object is related topublic boolean isActive()
isActive
in interface ChannelSubscriptionIF
public void setActive(boolean active)
ChannelSubscriptionIF
setActive
in interface ChannelSubscriptionIF
active
- - wether this channel should be updated at all or
not.public int getUpdateInterval()
getUpdateInterval
in interface ChannelSubscriptionIF
public void setUpdateInterval(int interval)
ChannelSubscriptionIF
setUpdateInterval
in interface ChannelSubscriptionIF
interval
- - time in seconds between channel update
retrievals.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |