01: /*
02: * All content copyright (c) 2003-2006 Terracotta, Inc., except as may otherwise be noted in a separate copyright notice. All rights reserved.
03: */
04: package com.tc.object.handler;
05:
06: import com.tc.async.api.AbstractEventHandler;
07: import com.tc.async.api.EventContext;
08: import com.tc.async.api.EventHandlerException;
09: import com.tc.object.msg.ClientHandshakeAckMessage;
10:
11: public class ClientHandshakeAckHandler extends AbstractEventHandler {
12:
13: public void handleEvent(EventContext context)
14: throws EventHandlerException {
15: if (true)
16: throw new AssertionError("Don't use me.");
17: if (!(context instanceof ClientHandshakeAckMessage))
18: throw new EventHandlerException("Unknown context type: "
19: + context);
20: }
21:
22: }
|