net.sf.josceleton.core.api.async
Interface Async<L extends Listener>

All Known Subinterfaces:
Connection, ConnectionInternal, Gesture<C,L>, HitWallGesture, JointableGesture<C,L>, UserService

public interface Async<L extends Listener>

Marks a type to interact asynchroniously via a listener defining some callback methods. No presumptions about the order of notification can be made, as it will depend on the internally used datastructure.

Since:
0.1

Method Summary
 void addListener(L listener)
          Add a listener to this Async type.
 void removeListener(L listener)
          Add a listener to this Async type.
 

Method Detail

addListener

void addListener(L listener)
Add a listener to this Async type. If listener was already added, nothing will happen (except of a warning showing up in the logs).

Parameters:
listener - which will be notified via onXyz() callbacks.
Since:
0.1

removeListener

void removeListener(L listener)
Add a listener to this Async type. If listener was already added, nothing will happen (except of a warning showing up in the logs).

Parameters:
listener - which will be notified via onXyz() callbacks.
Since:
0.1


Copyright © 2011 Josceleton. All Rights Reserved.