Package co.paralleluniverse.galaxy.core.Message

Examples of co.paralleluniverse.galaxy.core.Message.BACKUP


                            final Channel channel = entry.getKey();
                            final Iterator<BACKUP> iter = entry.getValue();

                            for (int i = 0; i < 10; i++) {
                                if (iter.hasNext()) {
                                    final BACKUP backup = iter.next();
                                    LOG.debug("Replicating {} to channel {}", backup, channel);
                                    channel.write(backup);
                                } else {
                                    channel.write(Message.BACKUP(-1, -1, null)); // marks the end of the stream
                                    LOG.debug("Finished replicating to channel {}", channel);
View Full Code Here


                            final Channel channel = entry.getKey();
                            final Iterator<BACKUP> iter = entry.getValue();

                            for (int i = 0; i < 10; i++) {
                                if (iter.hasNext()) {
                                    final BACKUP backup = iter.next();
                                    LOG.debug("Replicating {} to channel {}", backup, channel);
                                    channel.write(backup);
                                } else {
                                    channel.write(Message.BACKUP(-1, -1, null)); // marks the end of the stream
                                    LOG.debug("Finished replicating to channel {}", channel);
View Full Code Here

TOP

Related Classes of co.paralleluniverse.galaxy.core.Message.BACKUP

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.