com.neeve.client
Interface IClientEventHandler


public interface IClientEventHandler

The Client Event Handler interface.

An event handler is a sink for events generated by a client. Client events contain:
- An event type field (an integer value)
- An event data object (a type specific object).
Event types and their associated structure are defined in the ClientEvents class and are applicable to all client implementations. An implementation is free to add more implementation specific event types.


Method Summary
 void onEvent(Client<? extends ClientConnectionPool> client, int type, Object data)
          The event handler method
 

Method Detail

onEvent

void onEvent(Client<? extends ClientConnectionPool> client,
             int type,
             Object data)
The event handler method

Parameters:
client - The client from where this event originated.
type - The event type.
data - The type specific event event data.
Threading:
Refer to the description of each event for the threading context in which the event is dispatched


Copyright © 2015 Neeve Research, LLC. All Rights Reserved.