コード例 #1
0
ファイル: Draw.java プロジェクト: GavinHwa/bbossgroups-3.5
 public Draw(Channel channel, boolean use_state, long state_timeout) throws Exception {
   this.channel = channel;
   channel.setReceiver(this);
   channel.addChannelListener(this);
   this.use_state = use_state;
   this.state_timeout = state_timeout;
 }
コード例 #2
0
ファイル: ViewDemo.java プロジェクト: kookse/bboss-rpc
  public void start(String props) throws Exception {

    channel = new JChannel(props);
    channel.setReceiver(this);
    channel.connect("ViewDemo");

    while (true) {
      Util.sleep(10000);
    }
  }
コード例 #3
0
ファイル: Draw.java プロジェクト: GavinHwa/bbossgroups-3.5
  public Draw(
      String props,
      boolean no_channel,
      boolean jmx,
      boolean use_state,
      long state_timeout,
      boolean use_blocking,
      boolean use_unicasts,
      String name)
      throws Exception {
    this.no_channel = no_channel;
    this.jmx = jmx;
    this.use_state = use_state;
    this.state_timeout = state_timeout;
    this.use_unicasts = use_unicasts;
    if (no_channel) return;

    channel = new JChannel(props);
    if (name != null) channel.setName(name);
    if (use_blocking) channel.setOpt(Channel.BLOCK, Boolean.TRUE);
    channel.setReceiver(this);
    channel.addChannelListener(this);
  }
コード例 #4
0
ファイル: Draw.java プロジェクト: GavinHwa/bbossgroups-3.5
 public Draw(Channel channel) throws Exception {
   this.channel = channel;
   channel.setReceiver(this);
   channel.addChannelListener(this);
 }