blob: 08817eeeca23fcfdc861cf13ab6e8a71f2d74792 [file] [log] [blame]
Mark Slee83c52a82006-06-07 06:51:18 +00001package com.facebook.thrift;
2
Mark Slee456b7a82006-10-25 20:53:37 +00003import com.facebook.thrift.protocol.TProtocol;
Mark Slee83c52a82006-06-07 06:51:18 +00004
5/**
6 * A processor is a generic object which operates upon an input stream and
7 * writes to some output stream.
8 *
9 * @author Mark Slee <mcslee@facebook.com>
10 */
11public interface TProcessor {
Mark Slee456b7a82006-10-25 20:53:37 +000012 public boolean process(TProtocol in, TProtocol out)
Mark Slee83c52a82006-06-07 06:51:18 +000013 throws TException;
14}