1 5 package com.tc.net.protocol.transport; 6 7 import com.tc.exception.ImplementMe; 8 import com.tc.util.UUID; 9 10 import java.util.Collections ; 11 import java.util.Set ; 12 13 public class DefaultConnectionIdFactory implements ConnectionIDFactory { 14 15 private long sequence; 16 17 private String uid = UUID.getUUID().toString(); 18 19 public synchronized ConnectionID nextConnectionId() { 20 return new ConnectionID(sequence++, uid); 21 } 22 23 public Set loadConnectionIDs() { 24 return Collections.EMPTY_SET; 25 } 26 27 public void init(String clusterID, long nextAvailChannelID, Set connections) { 28 throw new ImplementMe(); 29 } 30 31 32 public void registerForConnectionIDEvents(ConnectionIDFactoryListener listener) { 33 throw new ImplementMe(); 34 } 35 36 } 37 | Popular Tags |