KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > com > tc > net > protocol > tcm > MockMessageChannelFactory


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

4 package com.tc.net.protocol.tcm;
5
6
7 public class MockMessageChannelFactory implements ServerMessageChannelFactory {
8
9   public MessageChannelInternal channel;
10   public int callCount;
11
12   public MessageChannelInternal createNewChannel(ChannelID id) {
13     callCount++;
14     return channel;
15   }
16
17 }
Popular Tags