// client continues processing in the face of temporary connectivity
// issues.
SequenceClientRestartManager clientRestartManager = new SequenceClientRestartManager();
// Create the client for receiving updated sequence numbers..
SequenceNumberClientChannelPipelineFactory channelPipelineFactory =
new SequenceNumberClientChannelPipelineFactory(
clientRestartManager.getControl(), numberListener, "localhost");
SequenceClient client = new SequenceClient(new InetSocketAddress(notificationPort), channelPipelineFactory);
try {
// Start the server with the current replication number.