KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > com > tc > object > handler > ClientHandshakeAckHandler


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.object.handler;
5
6 import com.tc.async.api.AbstractEventHandler;
7 import com.tc.async.api.EventContext;
8 import com.tc.async.api.EventHandlerException;
9 import com.tc.object.msg.ClientHandshakeAckMessage;
10
11 public class ClientHandshakeAckHandler extends AbstractEventHandler {
12
13   public void handleEvent(EventContext context) throws EventHandlerException {
14     if (true) throw new AssertionError JavaDoc("Don't use me.");
15     if (!(context instanceof ClientHandshakeAckMessage)) throw new EventHandlerException("Unknown context type: "
16                                                                                          + context);
17   }
18
19 }
20
Popular Tags