/** * getNewDataSender * * @return DataSender * @todo Implement this org.apache.catalina.tribes.transport.PooledSender * method */ public DataSender getNewDataSender() { MultipointBioSender sender = new MultipointBioSender(); sender.transferProperties(this,sender); return sender; }
@Override public synchronized void disconnect() { try {close(); }catch (Exception x){/* Ignore */} setConnected(false); }
@Override public void finalize() { try {disconnect(); }catch ( Exception e){/* Ignore */} }
@Override public void connect() throws IOException { //do nothing, we connect on demand setConnected(true); }
@Override public synchronized void sendMessage(Member[] destination, ChannelMessage msg) throws ChannelException { byte[] data = XByteBuffer.createDataPackage((ChannelData)msg); BioSender[] senders = setupForSend(destination); ChannelException cx = null; for ( int i=0; i<senders.length; i++ ) { try { senders[i].sendMessage(data,(msg.getOptions()&Channel.SEND_OPTIONS_USE_ACK)==Channel.SEND_OPTIONS_USE_ACK); } catch (Exception x) { if (cx == null) cx = new ChannelException(x); cx.addFaultyMember(destination[i],x); } } if (cx!=null ) throw cx; }
@Override public DataSender getNewDataSender() { MultipointBioSender sender = new MultipointBioSender(); AbstractSender.transferProperties(this,sender); return sender; } }
@Override public void connect() throws IOException { //do nothing, we connect on demand setConnected(true); }
@Override public synchronized void sendMessage(Member[] destination, ChannelMessage msg) throws ChannelException { byte[] data = XByteBuffer.createDataPackage((ChannelData)msg); BioSender[] senders = setupForSend(destination); ChannelException cx = null; for ( int i=0; i<senders.length; i++ ) { try { senders[i].sendMessage(data,(msg.getOptions()&Channel.SEND_OPTIONS_USE_ACK)==Channel.SEND_OPTIONS_USE_ACK); } catch (Exception x) { if (cx == null) cx = new ChannelException(x); cx.addFaultyMember(destination[i],x); } } if (cx!=null ) throw cx; }
/** * getNewDataSender * * @return DataSender * TODO Implement this org.apache.catalina.tribes.transport.PooledSender * method */ @Override public DataSender getNewDataSender() { MultipointBioSender sender = new MultipointBioSender(); AbstractSender.transferProperties(this,sender); return sender; }
public synchronized void disconnect() { try {close(); }catch (Exception x){} setConnected(false); }
@Override public void finalize() { try {disconnect(); }catch ( Exception e){/* Ignore */} }
@Override public void connect() throws IOException { //do nothing, we connect on demand setConnected(true); }
public synchronized void sendMessage(Member[] destination, ChannelMessage msg) throws ChannelException { byte[] data = XByteBuffer.createDataPackage((ChannelData)msg); BioSender[] senders = setupForSend(destination); ChannelException cx = null; for ( int i=0; i<senders.length; i++ ) { try { senders[i].sendMessage(data,(msg.getOptions()&Channel.SEND_OPTIONS_USE_ACK)==Channel.SEND_OPTIONS_USE_ACK); } catch (Exception x) { if (cx == null) cx = new ChannelException(x); cx.addFaultyMember(destination[i],x); } } if (cx!=null ) throw cx; }
/** * getNewDataSender * * @return DataSender * TODO Implement this org.apache.catalina.tribes.transport.PooledSender * method */ @Override public DataSender getNewDataSender() { MultipointBioSender sender = new MultipointBioSender(); AbstractSender.transferProperties(this,sender); return sender; }
@Override public synchronized void disconnect() { try {close(); }catch (Exception x){/* Ignore */} setConnected(false); }
public void finalize() { try {disconnect(); }catch ( Exception ignore){} }
public void connect() throws IOException { //do nothing, we connect on demand setConnected(true); }
@Override public synchronized void sendMessage(Member[] destination, ChannelMessage msg) throws ChannelException { byte[] data = XByteBuffer.createDataPackage((ChannelData)msg); BioSender[] senders = setupForSend(destination); ChannelException cx = null; for ( int i=0; i<senders.length; i++ ) { try { senders[i].sendMessage(data,(msg.getOptions()&Channel.SEND_OPTIONS_USE_ACK)==Channel.SEND_OPTIONS_USE_ACK); } catch (Exception x) { if (cx == null) cx = new ChannelException(x); cx.addFaultyMember(destination[i],x); } } if (cx!=null ) throw cx; }
@Override public synchronized void disconnect() { try { close(); } catch (Exception x) { // Ignore } setConnected(false); }
@Override public void finalize() throws Throwable { try { disconnect(); } catch (Exception e) { // Ignore } super.finalize(); }