de.nava.informa.impl.basic
Class ChannelSubscription

java.lang.Object
  extended by de.nava.informa.impl.basic.ChannelSubscription
All Implemented Interfaces:
ChannelSubscriptionIF, WithChannelMIF, Serializable

public class ChannelSubscription
extends Object
implements ChannelSubscriptionIF

In-Memory implementation of the ChannelSubscriptionIF interface.

Author:
Niko Schmuck (niko@nava.de)
See Also:
Serialized Form

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

ChannelSubscription

public ChannelSubscription(ChannelIF channel)
Default constructor sets to an inactive channel (with an update interval of 3 hours, used when activated).

Parameters:
channel - the channel.

ChannelSubscription

public ChannelSubscription(ChannelIF channel,
                           boolean active,
                           int interval)
Method Detail

getChannel

public ChannelIF getChannel()
Specified by:
getChannel in interface WithChannelMIF
Returns:
channel, this object is related to

setChannel

public void setChannel(ChannelIF channel)
Specified by:
setChannel in interface WithChannelMIF
Parameters:
channel - the channel, this object is related to

isActive

public boolean isActive()
Specified by:
isActive in interface ChannelSubscriptionIF

setActive

public void setActive(boolean active)
Description copied from interface: ChannelSubscriptionIF
Activate/Deactivate channel update behaviour.

Specified by:
setActive in interface ChannelSubscriptionIF
Parameters:
active - - wether this channel should be updated at all or not.

getUpdateInterval

public int getUpdateInterval()
Specified by:
getUpdateInterval in interface ChannelSubscriptionIF

setUpdateInterval

public void setUpdateInterval(int interval)
Description copied from interface: ChannelSubscriptionIF
Sets the interval time between channel updates.

Specified by:
setUpdateInterval in interface ChannelSubscriptionIF
Parameters:
interval - - time in seconds between channel update retrievals.


Copyright © 2002-2007 Niko Schmuck. All Rights Reserved.