public MessageDispatcher(Channel channel, MessageListener l, MembershipListener l2, boolean deadlock_detection, boolean concurrent_processing) { this.channel=channel; this.deadlock_detection=deadlock_detection; this.concurrent_processing=concurrent_processing; prot_adapter=new ProtocolAdapter(); if(channel != null) { local_addr=channel.getLocalAddress(); } setMessageListener(l); setMembershipListener(l2); if(channel != null) { channel.setUpHandler(prot_adapter); } start(); }
public MessageDispatcher(Channel channel, MessageListener l, MembershipListener l2, boolean deadlock_detection) { this.channel=channel; this.deadlock_detection=deadlock_detection; prot_adapter=new ProtocolAdapter(); if(channel != null) { local_addr=channel.getLocalAddress(); } setMessageListener(l); setMembershipListener(l2); if(channel != null) { channel.setUpHandler(prot_adapter); } start(); }
public <X extends MessageDispatcher> X setChannel(JChannel ch) { if(ch == null) return (X)this; this.channel=ch; if(ch != null) { local_addr=channel.getAddress(); ch.addChannelListener(this); } if(prot_adapter == null) prot_adapter=new ProtocolAdapter(); // Don't force installing the UpHandler so subclasses can use this method return installUpHandler(prot_adapter, false); }
public MessageDispatcher(Channel channel, MessageListener l, MembershipListener l2) { this.channel=channel; prot_adapter=new ProtocolAdapter(); if(channel != null) { local_addr=channel.getLocalAddress(); } setMessageListener(l); setMembershipListener(l2); if(channel != null) { channel.setUpHandler(prot_adapter); } start(); }
public MessageDispatcher(JChannel channel) { this.channel=channel; prot_adapter=new ProtocolAdapter(); if(channel != null) { channel.addChannelListener(this); local_addr=channel.getAddress(); installUpHandler(prot_adapter, true); } start(); }
public <X extends MessageDispatcher> X setChannel(JChannel ch) { if(ch == null) return (X)this; this.channel=ch; if(ch != null) { local_addr=channel.getAddress(); ch.addChannelListener(this); } if(prot_adapter == null) prot_adapter=new ProtocolAdapter(); // Don't force installing the UpHandler so subclasses can use this method return installUpHandler(prot_adapter, false); }
public MessageDispatcher(JChannel channel) { this.channel=channel; prot_adapter=new ProtocolAdapter(); if(channel != null) { channel.addChannelListener(this); local_addr=channel.getAddress(); installUpHandler(prot_adapter, true); } start(); }