KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > com > tc > net > protocol > transport > DefaultConnectionIdFactory


1 /*
2  * All content copyright (c) 2003-2006 Terracotta, Inc., except as may otherwise be noted in a separate copyright
3  * notice. All rights reserved.
4  */

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 JavaDoc;
11 import java.util.Set JavaDoc;
12
13 public class DefaultConnectionIdFactory implements ConnectionIDFactory {
14
15   private long sequence;
16
17   private String JavaDoc uid = UUID.getUUID().toString();
18
19   public synchronized ConnectionID nextConnectionId() {
20     return new ConnectionID(sequence++, uid);
21   }
22
23   public Set JavaDoc loadConnectionIDs() {
24     return Collections.EMPTY_SET;
25   }
26
27   public void init(String JavaDoc clusterID, long nextAvailChannelID, Set JavaDoc connections) {
28     throw new ImplementMe();
29   }
30
31
32   public void registerForConnectionIDEvents(ConnectionIDFactoryListener listener) {
33     throw new ImplementMe();
34   }
35
36 }
37
Popular Tags