view src/org/dancres/blitz/remote/nio/Dispatcher.java @ 0:3dc0c5604566

Initial checkin of blitz 2.0 fcs - no installer yet.
author Dan Creswell <dan.creswell@gmail.com>
date Sat, 21 Mar 2009 11:00:06 +0000
parents
children
line wrap: on
line source

package org.dancres.blitz.remote.nio;

import java.io.IOException;

/**
 * This is a protocol specific class whilst the rest is framework.  ControlBlock
 * dispatches to an instance of one of these as obtained from a DispatcherFactory.
 * Thus message decoding, dispatching etc are all managed outside of ControlBlock
 * which simply ships data to/from a client.
 */
public interface Dispatcher {
    public void process(ControlBlock aBlock) throws IOException;
}