01: /*
02: * All content copyright (c) 2003-2006 Terracotta, Inc., except as may otherwise be noted in a separate copyright
03: * notice. All rights reserved.
04: */
05: package com.tc.net.protocol.transport;
06:
07: import com.tc.exception.ImplementMe;
08: import com.tc.util.UUID;
09:
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,
28: Set connections) {
29: throw new ImplementMe();
30: }
31:
32: public void registerForConnectionIDEvents(
33: ConnectionIDFactoryListener listener) {
34: throw new ImplementMe();
35: }
36:
37: }
|